A day of the month: 1-31 depending on the month
Hour of the day in 24 time: 0-23
Millisecond of the second: 0-999
Minute of the hour: 0-59
A month of the year: 1-12
The full, four digit year.
import {getEndDate, DateUnit, utcTimezone} from 'date-vir';
getEndDate(
{
year: 2024,
month: 11,
day: 7,
hour: 12,
minute: 12,
second: 12,
millisecond: 12,
timezone: utcTimezone,
},
DateUnit.Month,
); // outputs {year: 2024, month: 11, day: 30, hour: 23, minute: 59, second: 59, millisecond: 999, timezone: utcTimezone}
Get the end date of a specific DateUnit based on a given FullDate.