On Sep 6, 2009, at 8:12 AM, Yvan KOENIG wrote: ne user (luKreme) writing that it's system set to mm/dd/yyyy is able to decipher dd/mm/yyyy and two user s(Michelle and Deivy) writing that it's system set to mm/dd/yyyy is unable to decipher dd/mm/yyyy
If dd is 12 or less and mm is 31 or less, it will compile, but it might not return the correct result. If the format is "mm/dd/yy" and you enter "12/07/09", you will get the wrong result if you actually meant July 12th, 2009.
It also handles overflows of dd (for 29, 30, and 32) if the month is shorter than the dd specified. For instance, if the format is mm/dd/yy, and you enter 02/31/09, the result is date "Tuesday, March 3, 2009 12:00:00 AM"
If you enter 32 or greater for dd, or 13 or greater for mm, you will get a runtime error.
-- Michelle
-- I am a pseudomasochist.. I like it when people pretend to beat me.
|