Skip to content

lightweight ruby-like strftime date formatting implementation

Notifications You must be signed in to change notification settings

b-coimbra/strftime.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

strftime.js

Ruby-like strftime method implementation in Javascript without the percentage notation.

The formatting is based on strftime.org

Example

console.log(new Date().strftime('H:M p - A')) // 21:32 AM - Thursday
console.log(new Date('01/01/2018').strftime('m/b/Y')) // 1/Jan/2018
console.log(new Date('01/18/2018').strtime('do B Y')) // 18th January 2018

About

lightweight ruby-like strftime date formatting implementation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published