0

Lets say my server is in one country, and the client is in another, date like:

2014/12/24 12:00:00

how to convert it to the client-browser time?

wruckie
  • 1,717
  • 1
  • 23
  • 34
  • 1
    this might answer your question - http://stackoverflow.com/questions/6525538/convert-utc-date-time-to-local-date-time-using-javascript – malta Feb 08 '14 at 13:43

1 Answers1

0
new Date('2014/12/24 12:00:00').toLocaleString(); 

Source: http://www.w3schools.com/jsref/jsref_tolocalestring.asp

Henry Ruhs
  • 1,533
  • 1
  • 20
  • 32