Possible Duplicate:
Parse C# string to DateTime
I am facing a problem while converting string to DateTime.
I have the datetime string as
20120104073010.221-0700
I want to parse it to get DateTime
object. Another thing, i am not sure if a .
occures or not in the milliseconds part.
Is there any general way to parse such strings?