Hello mavrick_101,
Use DateTime.ParseExact with
expected format as "string[] expectedFormats = { "ddd", "g", "MMM", "F",
"h", "mm", "ss", "zz"};" (no place to check it)
See MSDN for "Custom DateTime Format Strings"
http://msdn2.microsoft.com/en-us/library/8kb3ddd4.aspx
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog:
http://spaces.live.com/laflour
Team blog:
http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
mHi,
m>
mI have time in the following format...
m>
mTue, 8 May 2007 13:38:00 EDT
m>
mHow can I convert it DateTime? Convert.ToDateTime works fine if the
mTime Zone is GMT like Tue, 8 May 2007 13:38:00 GMT
m>
mIs there a specified way to accomplish this or would I have to do
msome hacks?
m>
mThnx
m>