Strange DateTime Format

Swissmade

Well-Known Member
Licensed User
Longtime User
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:

Swissmade

Well-Known Member
Licensed User
Longtime User
Correct, this behaviour is by design.

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.
 
Top