if dates are not Date object, or ISO string, or timestamp number
// returns in the user's locale language, the time that will pass, or passed from now for the given date
const firstDate = new Date()
setTimeout(() => {
const secondDate = new Date()
// will return false (time is not checked)
JMap.Util.Date.isAfter(secondDate, firstDate)
// will return true (because also check the time)
JMap.Util.Date.isAfter(secondDate, firstDate, true)
}, 1000)
JMap.Util.Date.isAfter
Returns true if the first date is after the second date.