Date Math
Latest Release
v1.5.115 May 2023
Bug Fixes
- update time zone database to 2023c
Bug Fixes
- update TZ Database 2022g (2022-11-29)
v1.5.9
3 October 2022
Bug Fixes
- update time zone database
v1.5.8
12 September 2022
Bug Fixes
- update time zone database
Bug Fixes
- update time zone database
Bug Fixes
- update angular polyfills (#115)
Bug Fixes
- update time zone database to 2022a (Released 2022-03-15)
Bug Fixes
- cdn bundles global imports
v1.5.4
5 November 2021
Bug Fixes
- update time zone database to 2021e (Released 2021-10-21)
v1.5.3
4 October 2021
Bug Fixes
- update time zone database to tz2021c
v1.5.2
19 March 2021
Bug Fixes
- weekInYear does not return proper week number if time is provided
- update to tz2021a
v1.5.1
6 January 2020
Bug Fixes
- include tslib in the CDN bundle
v1.5.0
7 October 2019
Bug Fixes
Features
- add converting local dates example for react
Bug Fixes
- getVarDate return type
- upgrade to tz 2019a (#58)
v1.4.0
7 January 2019
Features
- expose cached local, UTC date accessors
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.1
25 October 2018
Bug Fixes
- drop kendo-intl depdendency
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
v1.1.2
2 February 2018
Bug Fixes
- clone-date: return null when invalid date is passed
v1.1.1
12 December 2017
Bug Fixes
- duplicate comments in dist files
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
Bug Fixes
- clone date with 0 year in IE11 correctly
v0.4.0
18 April 2017
Features
- work with dates below year 100 (#6)
v0.3.3
27 March 2017
Bug Fixes
- isEqual: consider null values as equal
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
Is this article helpful?
Thank you for your feedback!