The format of DateTimes is covered in C# docs under custom DateTime formats. This defines what characters are used to determine what output. You state dd/mm/yyyy is the format specifier
I would guess that when referring to months you not use mm but instead MM. mm means minutes and MM means numeric month with a leading 0 if needed to ensure 2 digits are used. Try dd/MM/yyyy.
I got the same problem but noticed this issue has something to do with a changed I made in Windows 7 in the "Region and Languages" cause I moved from Venezuela to Spain... I got this problem when trying to print on PrimoPDF... reverting the changed solved
the problem... Seems like the problem is the Date/Hour format... My change was from hh:mm to H:mm!
PeterW
Member
4 Points
2 Posts
Re: Error: The string was not recognized as a valid DateTime. There is a unknown word starting at...
Aug 09, 2007 02:32 PM|LINK
The format of DateTimes is covered in C# docs under custom DateTime formats. This defines what characters are used to determine what output. You state dd/mm/yyyy is the format specifier
I would guess that when referring to months you not use mm but instead MM. mm means minutes and MM means numeric month with a leading 0 if needed to ensure 2 digits are used. Try dd/MM/yyyy.
I could be wrong but that would be my stab at it.
ounlopez
Member
135 Points
41 Posts
Re: Error: The string was not recognized as a valid DateTime. There is a unknown word starting at...
Nov 16, 2007 06:14 PM|LINK
Unfortunately, this did not do it. I really do not understand this problem.
warmth7
Member
2 Points
1 Post
Re: Error: The string was not recognized as a valid DateTime. There is a unknown word starting at...
Mar 02, 2011 03:01 PM|LINK
I got the same problem but noticed this issue has something to do with a changed I made in Windows 7 in the "Region and Languages" cause I moved from Venezuela to Spain... I got this problem when trying to print on PrimoPDF... reverting the changed solved the problem... Seems like the problem is the Date/Hour format... My change was from hh:mm to H:mm!