I currently have a web page where I am displaying the date a file was created as a string. Since the file is being generated on an american server, the date is in UTC.
An example date would be:
6/3/2016 10:13:55 AM
6/4/2016 01:13:55 AM
var ms = Date.parse('6/3/2016 10:13:55 AM' + ' UTC'); var date = new Date(); date.setTime(ms); var timezone_shifted_string = date.toLocaleString();