Select Page

To calculate the days between today and any date in the future or the past, just do the following.

$todaysDate = Get-Date

$futureDate = Get-Date 2025-01-15

($futureDate – $todaysDate).Days