bizarre datetime parse error ...
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I'm using System.IO.Directory.GetCreationTime(folderName) to get the creation date of a folder, but it throws an ArgumentOutOfRangeException with the message "Specified argument was out of the range of valid values. Parameter name: Not a valid Win32 FileTime." The folder in question is on a CDR that was burnt on a PC with a different datetime locale. Why is it that Windows Explorer can display the datetime of the folder without any problems, but the .net framework chokes on it? Does System.IO.Directory require some sort of CultureInfo to parse dates? If so, where do I specify this? Thanks in advance