Use PowerShell To Find Out How Long It Is Until Christmas

It’s July at the time of this post, which means Christmas is right around the corner! Maybe not. How long is it until Christmas, anyway? Well, PowerShell can tell us if we get the date of Christmas and subtract today’s date from it.

Only 17507113808.5639 more milliseconds until Christmas!

3 thoughts on “Use PowerShell To Find Out How Long It Is Until Christmas

  1. And just because:

    $date = Get-Date
    do {
    ((Get-Date ‘December 25’) – (Get-Date)).ticks
    }
    until ($date.DayOfYear -eq 359)

Comments are closed.