Recently I used the calendar control equivalent to Delphi in the project: If INPUT is initialized to 2004-08-11, click the calendar to zero 0.
After the program is found, it is found to have a bug, on my machine (Windows XP, IE6.0.2800.1106): PARSEINT ("01") = 1 ... PARSEINT ("07") = 7PARSEINT ("08) ") = 0PARSEINT (" 09 ") = 0PARSEINT (" 010 ") = 8 ... PARSEINT (" 018 ") = 1PARSEINT (" 019 ") = 1PARSEINT (" 020 ") = 16 ... PARSEINT (" 0119 ") = 9PARSEINT (" 0199 ") = 1 is very strange, I don't know how JavaScript's PARSEINT is handled, it seems to be an octal, check MSDN, determine this.
PARSEINT (NUMSTRING, [RADIX]) If RADIX is not provided, the prefix is a string of '0x' is used as a hexadecimal, the prefix is a string of '0' being treated as an eight-based. So simple, huh, huh! ! ! Return to the value I want, the calendar will not be wrong, :)