B
Brian R.
We are working with a system (black box to us) that provides date/time in the
following string format:
"Tues Sep 30 15:16:41 PDT 2008"
Where PDT is the local time zone.
We need to parse this into a DateTime object to be used for comparisons and
the problem is that we can't figure out how to get the time zone to parse.
We tried 'zzz' for that part of the format string, but it seems to be
expecting +/- hours and not a string PDT.
How can I parse this without having to create a switch statement for every
possible time zone?
Getting them to write out GMT (UTC) time is not an option as it is a black
box.
Thanks,
following string format:
"Tues Sep 30 15:16:41 PDT 2008"
Where PDT is the local time zone.
We need to parse this into a DateTime object to be used for comparisons and
the problem is that we can't figure out how to get the time zone to parse.
We tried 'zzz' for that part of the format string, but it seems to be
expecting +/- hours and not a string PDT.
How can I parse this without having to create a switch statement for every
possible time zone?
Getting them to write out GMT (UTC) time is not an option as it is a black
box.
Thanks,