How to present a date to the user?

This page summarizes the projects mentioned and recommended in the original post on /r/learnprogramming

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • moment

    Parse, validate, manipulate, and display dates in javascript.

  • The most common alternative is a library called momentjs . Moment fixes some of the issues with native Javascript dates. I am personally not a huge fan, because moment, like Javascript Date conflates timestamps, datetimes and dates. But it's widely used and so should be seriously considered.

  • date-fns

    ⏳ Modern JavaScript date utility library ⌛️

  • datefns is an alternative library that has a different philosophy. Rather than using a different type to represent dates, it has you continue using native dates, but provides tons of functions to do common tasks like parsing, formatting and date math.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts