             // If the letter is a key punctuation character,
             // cache it for the next time around.
             if (letter == "/" || letter == ":" ||
-                letter == "+" || letter == "-")
+                letter == "+" || letter == "-" ||
+				letter == ".")
             {
                 marker = letter;
                 continue;


        // create a date object and check the validity of the input date
        // by comparing the result with input values.
        var newDate:Date = new Date(year, mon, day, hour, min, sec);
        if (day != newDate.getDate() || mon != newDate.getMonth())
            return null;


                }

                // If the current letter is a slash or a dash,
                // assign num to month or day or sec.
                else if (letter == "/" || letter == "-" || letter == ".")
                {
                    if (mon < 0)
                        mon = (num - 1);
					else if (day < 0)
						day = num;
					else if (sec < 0)
						sec = num;
                    else
                        break; //error
                }

                // If the current letter is a colon,
                // assign num to hour or minute or sec.
                else if (letter == ":")
                {
                    if (hour < 0)
                        hour = num;
                    else if (min < 0)
                        min = num;
					else if (sec < 0)
						sec = num;
                    else
                        break; //error
                }
