Thread: Date
View Single Post
Old 12-18-2007   #2 (permalink)
Shay Levi


 
 

Re: Date

Check how Dates are displayed on your Regional Settings (control panel) on
the Date tab.
PowerShell will format the LastWriteTime date according to the settings specified
at Regional Settings
unless you configured alternate XML format file.

-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Hebrew weblog: http://blogs.microsoft.co.il/blogs/scriptfanatic


Quote:

> Is ther a bug in date notation when i use Danish characterset(850)??
>
> PS C:\Documents and Settings\TDP212> get-childitem | Where-Object
> {$_.LastWriteTime -gt "02-10-2007"}
>
> Directory: Microsoft.PowerShell.Core\FileSystem::C:\Documents and
> Settings\TDP212
>
> Mode LastWriteTime Length Name
> ---- ------------- ------ ----
> d---- 26-07-2007 12:13 .idlerc
> d-r-- 12-11-2007 14:50 Dokumenter
> d-r-- 29-10-2007 12:09 Foretrukne
> d---- 17-07-2007 13:04 Local Settings
> d---- 10-12-2007 13:39 Skrivebord
> -a--- 31-08-2007 09:49 41 back.txt
> -a--- 26-10-2007 12:05 172 default.pls
> -a--- 26-06-2007 14:26 2810 ipconfig.txt
> -a--- 05-11-2007 08:44 4360 ip_probelm.txt
> -a--- 05-11-2007 08:46 5186 ip_problem.txt
> -a--- 10-12-2007 12:54 1000 mytestfile.txt
> -a--- 02-10-2007 11:06 150 powerconsole.psc1
> -a--- 10-12-2007 10:23 5931 sample.txt
> -a--- 26-06-2007 14:29 5170 tshot.txt
> -a--- 26-06-2007 14:29 4002 tshot.xtx
> PS C:\Documents and Settings\TDP212> get-childitem | Where-Object
> {$_.LastWriteTime -gt "10-02-2007"}
>
> Directory: Microsoft.PowerShell.Core\FileSystem::C:\Documents and
> Settings\TDP212
>
> Mode LastWriteTime Length Name
> ---- ------------- ------ ----
> d-r-- 12-11-2007 14:50 Dokumenter
> d-r-- 29-10-2007 12:09 Foretrukne
> d---- 10-12-2007 13:39 Skrivebord
> -a--- 26-10-2007 12:05 172 default.pls
> -a--- 05-11-2007 08:44 4360 ip_probelm.txt
> -a--- 05-11-2007 08:46 5186 ip_problem.txt
> -a--- 10-12-2007 12:54 1000 mytestfile.txt
> -a--- 02-10-2007 11:06 150 powerconsole.psc1
> -a--- 10-12-2007 10:23 5931 sample.txt
> In Danish the date is dd-mm-yy !!
>

My System SpecsSystem Spec