Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.75 KB

File metadata and controls

27 lines (19 loc) · 1.75 KB

WTFormat icon

WTFormat

WTFormat generates date format codes for date-fns, Moment.js, Day.js, and Luxon. Type a date the way you want it to look, and get back the corresponding format string for each library.

Uptime Robot status Uptime Robot ratio (30 days) Hosted in Canada with MapleDeploy

How it works

Each JavaScript date library uses its own format tokens. Sat, Jun 24 is ddd, MMM D in Moment.js, EEE, MMM d in date-fns, and ccc, LLL d in Luxon. Memorizing these is tedious, and looking them up breaks your flow.

WTFormat skips the lookup. You type the date as you want it rendered, click "generate", and the app returns the matching format code for every supported library side by side. Copy the one you need and paste it into your project.

Built with

Nuxt.js, Vue, and TypeScript.