birthdaypicker icon indicating copy to clipboard operation
birthdaypicker copied to clipboard

Chrome browser is causing a day in default date to be behind.

Open igniteon opened this issue 11 years ago • 0 comments

Using the below, it alleviates the strange issue of chrome parsing the date differently.

function parseDate(input) { var parts = input.match(/(\d+)/g); // new Date(year, month [, date [, hours[, minutes[, seconds[, ms]]]]]) return new Date(parts[0], parts[1]-1, parts[2]); // months are 0-based }

igniteon avatar Sep 04 '13 14:09 igniteon