$.date.now
Now method of date helpers
To get current date or date in right now, we can use now method with/without date format on the argument. This now method is the same as Date.now()
or new Date().toString()
.
// without an argument
$date.now()
//=> Sun Apr 04 2021 11:21:14 GMT+0700
// with date format in argument
$date.now('DD-MM-YYYY')
//=> 04-04-2021
Last updated
Was this helpful?