datepicker - removing unneccessary code in parseDate function