Date string in timezone information

Description

The toString() method returns the date and time with time-zone information.

Example


var aDate = new Date(Date.UTC(2000, 0)); 
console.log(aDate);
console.log(aDate.toString())

The code above generates the following result.





















Home »
  Javascript »
    Javascript Reference »




Array
Canvas Context
CSSStyleDeclaration
CSSStyleSheet
Date
Document
Event
Global
History
HTMLElement
Input Element
Location
Math
Number
String
Window