getLastDayOfWeek
La fonction getLastDayOfWeek() retourne le dimanche correspondant à la semaine du TheDate ou SerializedTheDate fourni.
Exemple interactif
Syntaxe
typescript
function getLastDayOfWeek<
GenericInput extends TheDate | SerializedTheDate
>(
input: GenericInput
): TheDateParamètres
input:TheDateouSerializedTheDate.
Valeur de retour
Un TheDate représentant le dimanche de la même semaine, normalisé à 23:59:59.999 en UTC.
