auto (light) (dark)
Home page

WTFormat

Jul 2018
· GitHub · Website
TypeScript logo TypeScript
Vue logo Vue
WTFormat

I built WTFormat to take the headache out of date formatting. Every JavaScript date library uses its own format codes, and I got tired of looking them up. WTFormat hands you the right format string for whichever library you're using, so you can stop memorizing arcane tokens and get back to building.

WTFormat keeps things simple. You type a date in the format you want into a text input, hit "generate", and WTFormat spits out the corresponding format codes for date-fns, Moment.js, Day.js, and Luxon. No more digging through docs or guessing whether YYYY or yyyy is the right token this time.

Benefits for developers

WTFormat works for developers at any level. If you're a front-end developer, you can drop consistent date formats into your project without looking anything up. If you bounce between full-stack projects that use different date libraries, WTFormat gives you the right codes for each one. If you're just learning, you can compare how each library handles formatting in one place.

The tool helps non-developers too. A project manager can use WTFormat to communicate the exact date format they want, which keeps everyone on the same page and cuts down on miscommunication.

Conclusion

I built WTFormat for developers who want to cut down on repetitive lookups. The interface is straightforward, it generates format codes for the popular date libraries, and that's it. Developers focus on shipping their applications, project managers communicate the format they want clearly, and everyone moves a little faster.

Copyright © Ross Hill. All Rights Reserved.