getToday()function

getToday(): Date
Return
Date
A new Date instance at midnight today.

Get a date representing midnight of the current day.

Examples

getToday() // Date instance for today at 00:00