JavaScript Date

Generally 4 types of JavaScript date formats:
  • ISO Dates
ISO(International Organization for Standardization) 8601 is representation of dates and times.The ISO 8601 syntax (YYYY-MM-DD). It can be added hours, minutes, and seconds (YYYY-MM-DDTHH:MM:SS).
T in the date string, between the date and time, indicates UTC time.UTC (Universal Time Coordinated)  is the same as GMT (Greenwich Mean Time)
  • Long Dates
Long dates are most often written with a "MMM DD YYYY" syntax
  • Short Dates
Short dates syntax "MM/DD/YYYY"
  • Full Format
Note: When setting a date, without specifying the time zone, JavaScript will use the browser's time zone.

Comments

Popular posts from this blog

Bootstrap Breakpoints