Few days ago, String.js (a library for enhancing JavaScript's string functions) was shared.

XDate is another library similar to String.js but for parsing, formatting and manipulating dates.

XDate

The library is standalone, only 2.9kb gzipped, has chaining support and brings very handy methods like:

  • getting date values
  • adding-subtracting dates
  • calculating differences
  • getting outputs in multiple formats

It also has a wide set of methods for working with UTC values.

WebResourcesDepot Feed