cheeaun / life

Life - a timeline of important events in my life
http://cheeaun.life/
2.78k stars 605 forks source link

Suggestion: format dates in ISO 8601 #7

Open nedbaldessin opened 10 years ago

nedbaldessin commented 10 years ago

Using ISO 8601 would prevent confusion between US/rest of world date formatting when using the xx/xx/xxxx format. And you could still use your nice fuzzy matching.

As usual, XKCD speaks the truth: xkcd

umazalakain commented 10 years ago

Would it be possible to add a config setting so that the user can specify the date formatting?

bmaeser commented 10 years ago

+1

Tanner commented 10 years ago

:+1: This would be handy.

Tanner commented 10 years ago

A configuration option might be the best option to set how dates are entered and how they are shown (not sure why they'd be different). Could use Moment.JS's parse to make this easy to implement.

FR6 commented 10 years ago

Pull request #31 integrates the moment.js library to support "YYYY/MM/DD" date formats. But because of the functionality to allow "1976/04-2011", the format "YYYY-MM-DD" still don't work.