Date Math Changelog
v1.5.2
19 March 2021
Bug Fixes
- weekInYear does not return proper week number if time is provided
- update to tz2021a
v1.5.0
7 October 2019
Bug Fixes
- timezone examples
Features
- add converting local dates example for react
v1.3.2
3 December 2018
Bug Fixes
- stripTime if the day start is on the previous date
- update to IANA tz 2018f
v1.3.0
25 October 2018
Bug Fixes
- stale dependencies in browser bundle
Features
- timezones: introduce utilities for timezones conversions (#33)
v1.2.0
14 February 2018
Bug Fixes
- remove extra files from package
- bundle metadata and type definitions alongside CommonJS modules
- serve CDN bundle for UNPKG and jsDelivr
Features
- add es2015 bundle
v1.1.0
5 October 2017
Bug Fixes
- export durationInCenturies method
- firstDateOfMonth: persist hour part
- lastDateOfMonth: persist hour part
Features
- addCenturies: method to add/substract centuries to a date
- addDecades: method to add/substract decades to a date
- addYears: method to add/substract years to a date
- decates-in-century: get first/last decade in century
- durationInCenturies: method that calculates difference in centuries
- durationInDecades: method calculating duration in decades between 2 dates
- durationsInMonths: add method measuring duration in months between 2 dates
- durationsInYears: add method measuring duration in years between 2 dates
- years-indecade: add methods for first/last years in decade
v0.3.2
31 January 2017
Bug Fixes
- add-months:
- normalize days only when resulting month is shorter
- normalize days when calculated month is shorter (#4)
Features
- add isEqualDate function
- add isEqual function
- add firstDayInWeek function
- add cloneDate function
- introduce add months method
- introduce add weeks method
- use typescript tasks
In this article
Not finding the help you need?
Contact Support