Skip to content

rosslh/WTFormat

Repository files navigation

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.

About

Generate date format codes for date-fns, Moment.js, Day.js, and Luxon

Topics

Resources

Stars

Watchers

Forks

Contributors