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.
Returns the day-of-month in UTC (1β31).
Challenge: Verify that new Date('2024-06-15T12:30:45.000Z').getUTCDate() returns 15.