| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
The simplest, most intuitive date and time library.
npm install date-and-timeimport { format } from 'date-and-time';
format(new Date(), 'ddd, MMM DD YYYY');
// => Wed, Jul 09 2025const { format } = require('date-and-time');
format(new Date(), 'ddd, MMM DD YYYY');
// => Wed, Jul 09 2025<script type="module">
import { format } from 'https://cdn.jsdelivr.net/npm/date-and-time/dist/index.js';
console.log(format(new Date(), 'YYYY/MM/DD'));
</script><script type="module">
import { format } from 'https://unpkg.com/date-and-time/dist/index.js';
console.log(format(new Date(), 'YYYY/MM/DD'));
</script>Version 4.x has been completely rewritten in TypeScript and some features from 3.x are no longer compatible. The main changes are as follows:
For details, please refer to migration.md.
For comprehensive documentation and examples, visit: GitHub Pages
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
| Back | FazBrowse Home | New Git URL |