W
W
WiNNeR_tig2018-02-16 15:20:46
PHP
WiNNeR_tig, 2018-02-16 15:20:46

Time received via Javascript?

Faced such a problem: This is how we get the time, but sow the day I thought that the time would be obtained from the server, and not from the client. Is it possible to pass the server time in PHP in the same format as JS does? Or I will put the question this way, is there a ready-made function for PHP to get the same time format as for JS? JS shows this format:
var now = new Date();
Fri Feb 16 2018 15:28:24 GMT+0300 (RTZ 2 (зима))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
fomenko_alexandr, 2018-02-16
@WiNNeR_tig

echo date('DM d YH:i:s O');

I
Ivan, 2018-02-16
@asmodeusta

Date in any format

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question