JMap.Util.Date.add
Returns a date, that is the given date plus the given amount of unit.
It's safe, the given date is not changed.
Possible time units are : "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" |"years"
the date from
amount of unit
JMap.Util.Date.format
Returns a formatted string from a date.
Date object, or ISO string, or timestamp number
optional params
JMap.Util.Date.formatDistanceToNow
Returns in the user's locale language, the time that will pass, or passed from now for the given date.
Date object, or ISO string, or timestamp number
optional params
JMap.Util.Date.getDate
Returns the date for the given input.
the date as a string, number, or Date
JMap.Util.Date.getDateFnsLocale
Returns the format for date-fns library.
true to return the format including the time
JMap.Util.Date.getDateFromISOString
Returns a date corresponding to the given ISO-8601 date string.
IS-8601 string date
JMap.Util.Date.is12HoursTimeFormat
Returns true if the current user locale use AM-PM format, else false.
JMap.Util.Date.isAfter
Returns true if the first date is after the second date.
Date object, or ISO string, or timestamp number
Date object, or ISO string, or timestamp number
if true will also check the date time, else check only the date
JMap.Util.Date.isBefore
Returns true if the first date is before the second date.
Date object, or ISO string, or timestamp number
Date object, or ISO string, or timestamp number
if true will also check the date time, else check only the date
JMap.Util.Date.substract
Returns a date, that is the given date minus the given amount of unit.
It's safe, the given date is not changed.
Possible time units are : "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" |"years"
the date from
amount of unit
JMap.Util.Date
Here you'll find all JMap date utility methods