fixed "1900" bug in datepicker