DateFormat
-
I want to read a date string from a log file it is in this format ... 17/Apr/2003:06:40:39 +1000 I would like to parse this then display it as the local time format. I am lost in the world of Globalization James McCutcheon
-
I want to read a date string from a log file it is in this format ... 17/Apr/2003:06:40:39 +1000 I would like to parse this then display it as the local time format. I am lost in the world of Globalization James McCutcheon
Found my own solution ... in case anybody else wants to know: activitytime = "01/Apr/2003:11:01:02 +1000"; DateTime dt = DateTime.ParseExact(activitytime, "dd/MMM/yyyy:HH:mm:ss zzz", new System.Globalization.DateTimeFormatInfo());
-
Found my own solution ... in case anybody else wants to know: activitytime = "01/Apr/2003:11:01:02 +1000"; DateTime dt = DateTime.ParseExact(activitytime, "dd/MMM/yyyy:HH:mm:ss zzz", new System.Globalization.DateTimeFormatInfo());
James McCutcheon wrote: Found my own solution ... in case anybody else wants to know: I always appreciate people posting their solutions if they find them. Then if someone else with the same problem comes across the same problem and finds your post, they can know the solution, too. :)
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi