datepicker fix for parseDate - this time hopefully it's fully cross-browser