Skip to content

arshaw/xdate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3060bce · Jul 31, 2024

History

45 Commits
Mar 31, 2013
Apr 28, 2017
Mar 31, 2013
Jun 28, 2019
Jul 31, 2024
Jul 31, 2024
Oct 10, 2011
Oct 10, 2011
Feb 13, 2012
Jul 31, 2024
Apr 28, 2017
Jul 31, 2024
Jul 31, 2024

Repository files navigation

XDate

A Modern JavaScript Date Library (circa 2013)

Important

This package is no longer actively maintained (blog post). We recommend using temporal-polyfill instead. It is written by the same author and implements the new standard for JavaScript dates.

XDate is a thin wrapper around JavaScript's native Date object and provides enhanced functionality for parsing, formatting, and manipulating dates. It implements the same methods as the native Date, so it should seem very familiar.

Also, it is non-destructive to the DOM, so it can safely be included in third party libraries without fear of side effects.

Installation:

npm install xdate
var XDate = require('xdate')
var d = new XDate()