Version: v0.8.1 - Beta.  We welcome contributors & feedback.

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

See Also