Showing results for isToday - PowerShell Team

Sep 6, 2006
0
0

DateTime Utility Functions

PowerShell Team
PowerShell Team

I often want to find things that happened Today.  For instance, which files got changed today.  Windows PowerShell makes this easy to do but it can be a bit verbose and I do it a lot so I've added a function to my profile:  IsToday. function isToday ([datetime]$date) {[datetime]::Now.Date  -eq  $date.Date} This takes advant...

FAQDateTimeisToday