470,612 Members | 2,468 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,612 developers. It's quick & easy.

What is an easy way to create DateTime from a string that contains date in the following format "yyyyMMdd"?

Hi,

What is an easy way to create DateTime from a string that contains date in
the following format "yyyyMMdd"?

Take care,
Sasha
Nov 15 '05 #1
2 6250
"Sasha" <no@no.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

What is an easy way to create DateTime from a string that contains date in
the following format "yyyyMMdd"?

Take care,
Sasha


Use the ParseExact method: DateTime.ParseExact(stringvalue, "yyyyMMdd",
null)

Arild
Nov 15 '05 #2
Damn, it is so easy! :)
Thank you Arild!
"Arild Bakken" <ar*****@hotmail.com> wrote in message
news:On**************@TK2MSFTNGP09.phx.gbl...
"Sasha" <no@no.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

What is an easy way to create DateTime from a string that contains date in the following format "yyyyMMdd"?

Take care,
Sasha


Use the ParseExact method: DateTime.ParseExact(stringvalue, "yyyyMMdd",
null)

Arild

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Robin Tucker | last post: by
reply views Thread by David Garamond | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.