L
L
lxfr2014-03-05 10:57:00
Time Zones
lxfr, 2014-03-05 10:57:00

How to convert date from EUROPE/MOSCOW to AMERICA/Detroit in JS?

For example, here is a date: 2014-03-05 00:00:00.
It is desirable that when translating I myself indicate the zones (EUROPE/...), because these zones are passed to me by PHP.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GM2mars, 2014-03-05
@lxfr

Look at this library momentjs.com/ quite convenient to work with the date.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question