A
A
Alexander2019-02-12 15:57:29
PHP
Alexander, 2019-02-12 15:57:29

How to convert date-time in unix?

Format: 18/Jan/2018:03:38:33
I know that strtotime, it just gives false when inserted. How to show him the format?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-02-12
@AleksandrB

date_create_from_format('d/M/Y:H:i:s', $str)->getTimeStamp()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question