Date.isFuture
$date.isFuture() -> boolean
Description
Return true
is Date object is before the current time.
$now = Date.now() $lastWeek = $now.add('-7 days') $nextWeek = $now.add('7 days') $now.isFuture() //= false $nextWeek.isFuture() //= true $lastWeek.isFuture() //= false