Hi - Powershell newbie here!
I need to do something simple, but I just can't get it right in Powershell.
i need to read in the date from a file and compare it to todays date. Simple. Only thing is i want to compare just the date - ie not the time.
Currently i have something like the following:
$variable = get-date -format(dd/MM/yyyy)
$var = dir c:\anyfolder\anyfile.txt |where-object {$_.lastwritetime |select lastwritetime}
but it won't give me what i want. Haven't done the comparison here!
i just need the date in dd/MM/YYYY format as variables from a file and from the machine date.
Any help greatly appreciated.
Thnx
Submitted via EggHeadCafe - Software Developer Portal of Choice
Object-Relational Mapping as a Persistence Strategy
http://www.eggheadcafe.com/tutorials...l-mapping.aspx


