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 $ npm i isoformat
import format from "isoformat";
<script type="module"> import format from './src/index.js'; </script>
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.