Combining an Time / Date Array to convert to UNIX TIME

2014-03-25T05:25:43

So I have a form for creating scheduled dates. Title, Subject, bla bla... But then, I have a jQuery Date picker, that lets the user pick a date off a calendar. The jQuery date picker only formats for human dates I want to store them in UNIX TIME. So I have this Calendar, for the YEAR, MONTH, DAY... Then I have a standard drop down for the hour, 1:00 PM, 1:30 PM Etc...

The post print_r($_POST); looks like this,

[time] => Array
    (
        [0] => 5:00 PM
        [1] => 1:00 PM
        [2] => 8:00 PM
    )

[date] => Array
    (
        [0] => 2014-05-08
        [1] => 2014-04-04
        [2] => 2014-03-28
    )

I found strtotime(); for converting, human time / date into UNIX TIME, however... How do I get array [0] from time, and date to combine and be a combined string. There might be only 1 date, or 8 dates?!

Copyright License:
Author:「Benjamin Schroeder」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/22620906/combining-an-time-date-array-to-convert-to-unix-time

About “Combining an Time / Date Array to convert to UNIX TIME” questions

So I have a form for creating scheduled dates. Title, Subject, bla bla... But then, I have a jQuery Date picker, that lets the user pick a date off a calendar. The jQuery date picker only formats for
Does anyone of you have suggestions how to convert the Unix timestamp to ABAP MEZ/MESZ time and date? The following code is from the ABAP-Reference, the code is for timestamps with lenght 15 or 2...
Trying to convert a full column of Unix into date time in R. I've been able to use as.POSIXlt(x, origin = "1970-01-01") to convert Unix. But now I'm trying to convert a whole column of Unix into ...
I want to convert "2013-09-16" into unix time. I found Convert UNIX epoch to Date object in R but I need to do the reverse of that. Thanks!
I want to convert "2013-09-16" into unix time. I found Convert UNIX epoch to Date object in R but I need to do the reverse of that. Thanks!
I have a dataframe which has a column (expires) with unix time codes. I want to convert these to TWO separate columns, one for time (expires_time) and one for date (expires_date). I've started with a
I am a little confused with the unix time stamp conversion to java.util.Date involving the time zones. I have a unix time stamp that is "1367832568". it is a UTC date (Mon May 06 17:29:28 GMT+00:0...
I wanted to convert the UNIX time into local date and time. I am getting the UNIX timestamp value from my server but when I convert the UNIX using these set of code I get a time which is 1 hour 30 ...
Im trying to convert a timestamp to a human readable date and time. I tried: String dateSt = 1386580621268; Log.i("*****", "date st is = "+dateSt); long unixSeconds = Long.parseLong(dateSt); Log....
What is the best way to convert date from japan format to regular format in php and javascript I have the date: 2016年04月01日 So I want to convert that to the unix timestamp. I try to do that in J...

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.