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

Date.isAfterOrEqual

$date.isAfterOrEqual($otherDate) -> boolean

Description

Return true is Date object is after or equal to $otherDate.

$otherDate can be one of the following:

$now = Date.now()

$lastWeek = $now.add('-7 days')
$nextWeek = $now.add('7 days')

$nextWeek.isAfterOrEqual($now)
//= true

$lastWeek.isAfterOrEqual('tomorrow')
//= false

$now.isAfterOrEqual($now)
//= true

See Also