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 .
 
Back
Top