Y
Y
yischyk2020-05-01 19:09:44
PHP
yischyk, 2020-05-01 19:09:44

How to convert a date like May 1 at 18:57 to unixtime?

Guys, sorry, maybe the question is really stupid) There is a date like May 1 at 18:57, how to translate it using php to unixtime.
That moment when it doesn’t matter anymore - crutches or not, digging in Google for not so long, but annoying)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadym Masiuk, 2020-05-01
@yischyk

$time ='May 1';
echo strtotime($time);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question