Fixed bug that caused the date to be wrong if it was more than two digits long.