Home forums Chart Support dateTime stamp time zone Reply To: dateTime stamp time zone

#32627

@joshuasosa,

You can use toUTCString() method to convert a Javascript timestamp values into UTC format. Please refer to this stack overflow article for more information.

Also if you like to display time in a particular timezone, you can use the toLocaleString() method to convert a Date object to a string, using locale settings. You can output dates that are in UTC or local time to a specific timezone by passing timeZone option to toLocaleString().


Shashi Ranjan
Team CanvasJS