An absolutely unpretentious plugin to format dates from ISO (YYYY-MM-DD) in french or english. The specifiers supported are very limited and were added for my specific needs. I do what I want.
- %A day name (Sunday, Monday...)
- %e Day of the month (1 to 31)
- %d Day of the month (01 to 31)
- %Y Four digit representation for the year
- %b Abbreviated month name (Jan, Feb...)
- %B Full month name
- %q (not strftime standard) de or d' depending on month name in french (d'octobre vs de juin)
$('.date', el).writeDate({
lang: 'fr',
format: '%A %e %B %Y'
});