Formats Dates as the Shortest String Equivalent to ISO 8601 UTC | isoformat

isoformat gives a date and returns the shortest ISO 8601 UTC equivalent string. iso format is a date format JavaScript library that helps convert any date object into the shortest string equivalent to ISO 8601 UTC.

Must Read: A Lightweight Date & Time Manipulation JavaScript Library | dayjs

How to make use of it:

1. Install and import the isoformat.

$ npm i isoformat
import format from "isoformat";
<script type="module">
  import format from './src/index.js';

2. Usage.

const myValue = format(new Date(Date.UTC(2021, 3, 23, 12, 38)))
=> 2021-04-23T12:38Z

See Demo And Download

Official Website(mbostock): Click Here

This superior jQuery/javascript plugin is developed by mbostock. For extra Advanced Usage, please go to the official website.

Related Posts


[Offcanvas] Simple and Modern Multi-Level Sidebar Menu on Bootstrap 4

The multi-level sidebar menu is simple and fast on Bootstrap. So you must be aware of how to use Bootstrap itself. This plugin is fast, responsive, multi-level,…


Dark & Light Switch Mode Toggle for Bootstrap 5

Switching to dark mode is done by toggling HTML tags that include -dark or -light as a category. It is made by manipulating the DOM with JavaScript. The text color also changes depending…


Vuejs Lightweight Prompt Based On Promise And Confirm Dialog

VUEJS DIALOG PLUGIN is a lightweight, promise-based, prompt, and dialog-based alert. Important updates The dialog will always be resolved by an object. (ie a callback to continue…


Insert HTML Into Your Browser Alert & Confirm Dialog | alert4html.js

alert4html.js is a JavaScript library that enables you to insert HTML directly into your browser alerts while simulating Chrome alerts as well. alert4html.js is an alternative to…


Simple and Lightweight Flexbox Carousel Plugin With JavaScript | flexCarousel.js

Flexbox Responsive Slider – flexCarousel.js plugin is a simple and lightweight plug-in from Flexbox carousel ES6 JavaScript. An unofficial fork by Slick Carousel. Flex Carousel is a…


Multi-Level Dropdown Works With Bootstrap 5

Bootstrap 5 Multi-Level Dropdown, using the official HTML without adding additional CSS styles and classes, it’s just like the original support. Not all of the things listed…

Leave a Reply

Your email address will not be published. Required fields are marked *