Skip to content

mgvez/jquery.writedate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

jquery.writedate

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.

Supported formats

  • %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)

Usage

$('.date', el).writeDate({
	lang: 'fr',
	format: '%A %e %B %Y'
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published