Easy way to format dates in JavaScript
Easy way to format dates in JavaScript
Advertisement

intl-dateformat is a simple date formatting library that leverage the Intl.DateTimeFormat API to format dates in different languages and timezones without having to clutter your JavaScript bundles.

Features

  • ‚úĆ Small: As it directly leverages Intl.DateTimeFormat, there is no need to bundle additional locales or a timezones database. It’s already in your Browser!
  • ūüĎĆSimple: It supports a subset of ISO 8601 formats, discarding very rarely used date parts.
  • ūü§ü Extensible: That said, if you want to customize things you can pass custom formatters.

Installation


Example


Usage

You can view the full documentation by navigating to this link

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.