Namespacedojo.date

Date manipulation utilities

Jump to FunctionsNamespacesBack to top

Jump to NamespacesFunctionsBack to top

Functiondojo.date.add(date: Date, interval: String, amount: Integer)
Add to a Date in intervals of different size, from milliseconds to years
Functiondojo.date.compare(date1: Date, date2: Date?, portion: String?)
Compare two date objects by date, time, or both.
Functiondojo.date.difference(date1: Date, date2: Date?, interval: String?)
Get the difference in a specific unit of time (e.g., number of months, weeks, days, etc.) between two dates, rounded to the nearest integer.
Returns the number of days in the month used by dateObject
Get the user's time zone as provided by the browser
Determines if the year of the dateObject is a leap year