Time Zone and ParseDateTime
-
I tried using COleDateTime::ParseDateTime(...) and VarDateFromStr(...) to parse a date/time string that contains *time zone* information (ET, CT, +4:00, GMT+4:00, etc...) but every time I do so I get "Invalid DateTime" // code ////////////////////// COleDateTime dt; CString sdate = "Feb 1 2002 17:05 +7:00"; // <- Time Zone string date dt.ParseDateTime(sdate); CString st2 = dt.Format("%H:%M"); // <- returns 'Invalid DateTime' // ----------------------------- Is it just me (am I doing this wrong) or the ParseDateTime is no good for time zones? :confused: Is there any other way/method that could parse string with time zone information (like: "Feb 1 2002 17:05 +7:00"). JScript and VC#.NET have no problem parsing date/time strings with time zone info, but I can't seem to parse date/time string in VC++. :(( Platform: WinXP Pro, VC++.NET (unmanaged) Thanks in advance Mike