Simon Willison’s Weblog

Subscribe

parseDateString function in dateparse.js return wrong date for '2006-12-31'. I didn’t realise that you have to initialise a JavaScript Date object in a certain order; if you don’t weird bugs can result.