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

Date.equals

$date.equals($otherDate) -> boolean

Description

Return true is Date object is equal to $otherDate.

$otherDate can be one of the following:

$now = Date.now()
$nextWeek = $now.add('7 days')

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

$nextWeek.equals('tomorrow')
//= false

See Also