Software Engineer(.Net C# Developer)
Wednesday, September 21, 2011
Convert string to datetime exactly not normal datetime.
The unexpected error was come once in front of me.string was not in a valid datetime format.Then i searched for this conversion and it works properly now.
DateTime dt = DateTime.ParseExact(txtdob.Text, "dd/MM/yyyy", null); ;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment