Swissmade Well-Known Member Licensed User Longtime User May 15, 2011 #1 Hi all, DateTime Format has a strange behavior If I declare, by mistage, DateTime.DateFormat= "yyyy-mm-dd" I get a month with more then 12 like 42. No error occurs. I think there has to be a error message if this happend. Because of the wrong Date Format. If I have the DateTime.DateFormat= "yyyy-MM-dd" like it have to be I get the right Month back. :sign0142: Last edited: May 15, 2011
Hi all, DateTime Format has a strange behavior If I declare, by mistage, DateTime.DateFormat= "yyyy-mm-dd" I get a month with more then 12 like 42. No error occurs. I think there has to be a error message if this happend. Because of the wrong Date Format. If I have the DateTime.DateFormat= "yyyy-MM-dd" like it have to be I get the right Month back. :sign0142:
stevel05 Expert Licensed User Longtime User May 15, 2011 #2 I think mm is minutes, and therefore a valid format string. Steve
Swissmade Well-Known Member Licensed User Longtime User May 16, 2011 #4 agraham said: Correct, this behaviour is by design. Click to expand... I'm agree with this but there has to be a error message if used in a dateformat. No problem I know it now. Just like to share that nobody make the same mistake:BangHead: I dit.
agraham said: Correct, this behaviour is by design. Click to expand... I'm agree with this but there has to be a error message if used in a dateformat. No problem I know it now. Just like to share that nobody make the same mistake:BangHead: I dit.