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.

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe