Here are 3 examples of date and time strings I have
08-01-2019_03-00-34pm
22-01-2019_02-05-06pm
30-01-2019_11-17-07am
I would like to convert these to Unix Time Stamps
For example I have tried this on the first one..
echo (strtotime("08-01-2019"));
This half works, as it gives me a timestamp of 1546905600 which translates back to the correct date, but obviously makes the time 12:00:00am by default. So I'm stuck with how to deal with the time bit
I understand there is a str_replace()
function so as long as I know what format I need to make the time bit, I guess I could use that?