Powershell date tricks by ZP | Jun 22, 2024 | PowershellTo 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