endOfDay
Commons
stable
Returns a new Date set to the last millisecond of the given day (23:59:59.999 local time). The input date is not mutated.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- daterequisDate
- The reference date. Only the year/month/day part is used; the time is replaced with 23:59:59.999.
API
Valeur de retour
La valeur retournée par cet util.
- A new Date at 23:59:59.999 on the same calendar day as the input.
Usage
Exemples
Extraits de code prêts à coller.
Get the last moment of a day