Datetime and String

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

when we talking about "valid string representation" in DateTime and string transformation ... what actually do we mean ? In what format of string can be considered as Valid or Invalid ? Please advice . Thank you so much .
 
Invalid would be any legal string value which cannot be converted to a date
time object. For example, null is a legal string value. What date would that
represent? If you need the framework to help you sift out legal string
values, use the ParseExact method of the datatime object (struct in that
case)

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Machi said:
when we talking about "valid string representation" in DateTime and string
transformation ... what actually do we mean ? In what format of string can
be considered as Valid or Invalid ? Please advice . Thank you so much .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top