Comparing dates issue using powershell?
hi,
i have dates in variable : $setvar=[datetime]::parseexact("11102005","mmddyyyy", $null) picking time component. want compare such variable $setvar2 same format want comparison between dates only(mmddyyyy) , not time. pls help.
as have not specified time when creating datetime object, both default 12:00:00am. makes them equivalent purposes of comparison.
[string](0..9|%{[char][int](32+("39826578840055658268").substring(($_*2),2))})-replace "\s{1}\b"
[string](0..9|%{[char][int](32+("39826578840055658268").substring(($_*2),2))})-replace "\s{1}\b"
Windows Server > Windows PowerShell
Comments
Post a Comment