This is a discussion on XmlSerializer throws a exception: String was not recognized as a valid DateTime. within the C# Programming forums, part of the Software Development category; XmlSerializer throws a exception: String was not recognized as a valid DateTime. I am getting exception while using serialize and ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| XmlSerializer throws a exception: String was not recognized as a valid DateTime. I am getting exception while using serialize and deserialize an object, |
| Sponsored Links |
| |||
| The XmlConvert class provided by .NET framework is use to encodes and decodes XML names and provides methods for converting between common language runtime types and XML Schema definition language (XSD) types. The following code demonstrates the datetime conversion. string dt1 = "2004/07/26 21:00:05"; DateTime dt2 = XmlConvert.ToDateTime(dt1, "yyyy/MM/dd HH:mm:ss");
__________________ The MOSS Master of Solution Service |
| |||
| oh...i didnt use that before ...thank u |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Datetime datatype formate | Kirubhananth | ASP and ASP.NET Programming | 3 | 03-10-2008 03:23 AM |
| Discussweb - Not valid url | vadivelanvaidyanathan | Discussweb HQ | 3 | 02-10-2008 02:09 AM |
| I am getting 'String was not recognised as a valid DateTime' | poornima | ASP and ASP.NET Programming | 2 | 02-01-2008 11:17 PM |
| How do you check if a date is valid? | itbarota | HTML, CSS and Javascript Coding Techniques | 4 | 12-30-2007 11:21 PM |
| How do you check if a date is valid? | itbarota | HTML, CSS and Javascript Coding Techniques | 4 | 12-19-2007 12:06 AM |