Learn JavaScript
Date
29.3
Lesson

Date formats

The Date object can be represented as a string containing various properties.

The toString() method converts the Date object to a string using the full-text format. The full-text format contains the date, time and timezone.

The toUTCString() method converts the Date object using the UTC format. UTC or Coordinated Universal Time is the standard by which the world regulates clocks.

The toISOString() method converts the Date object to a string using the ISO format. The ISO format provides a method for representing dates and time.

The toDateString() method converts the Date object to a string containing only the date portion.