getUTCDatebeginnerconst d = new Date('2024-06-15T12:00:00.000Z')
d.getUTCDate() // β 15Use getUTCDate() to retrieve the day of the month (1β31) in UTC, unaffected by the local timezone.
The first day of a month is 1 in UTC.
Challenge: Verify that new Date('2024-01-01T00:00:00.000Z').getUTCDate() returns 1.