JavaScript toISOString()

The toISOString() method converts a date to a date string, using the ISO standard format: