Any help with PHP to convert the below, taking into consideration the time zone at the end, to UNIX epoch for MYSQL insert.
29/05/2022 22:23:04 +00:00
No examples of attempts :-/ Tried basic strtotime
on it’s own.
Any help with PHP to convert the below, taking into consideration the time zone at the end, to UNIX epoch for MYSQL insert.
29/05/2022 22:23:04 +00:00
No examples of attempts :-/ Tried basic strtotime
on it’s own.
2
Answers
In the interest of helping someone out in a pinch .. You need to do something like this. I don’t know your exact timezones, if they are
+0:00
or+00:00
.. But this will get you started as a stand-alone app that you can form into your own script…Just parse the date and call getTimestamp.
Output: