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"


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...