What is the best way to go about inserting a DATETIME into my MySQL database via PHP? The scenario is that I have a form where the user will enter a date and time and submit. I want this form to insert a valid DATETIME value into my database. I know how to convert my DATETIME values into Unix timestamps for use in my PHP code, but I'm not understanding how to best handle it the other direction.
Given that the user would be inputting field values as follows: $month $day $year $hour(24) $minutes
how do I best construct that into a valid DATETIME value that will go into my INSERT statement?