steviez Posted October 5, 2009 Share Posted October 5, 2009 Hi, I have an application that posts in my forums at certain times that i specifie for example: 12/09/2009 @ 12AM The date and time are in seperate drop down boxes on my page and when i pass them to php i need to bring them both togther and convert to unix time. Is there any way to do this or am i doing it all wrong? I would need $_POST['date'] and $_POST['time'] to make one time stamp containing the correct date and time. Thanks Link to comment https://forums.phpfreaks.com/topic/176512-solved-time-and-date-help/ Share on other sites More sharing options...
RussellReal Posted October 5, 2009 Share Posted October 5, 2009 strtotime($_POST['date']." ".$_POST['time']); Link to comment https://forums.phpfreaks.com/topic/176512-solved-time-and-date-help/#findComment-930462 Share on other sites More sharing options...
steviez Posted October 5, 2009 Author Share Posted October 5, 2009 strtotime($_POST['date']." ".$_POST['time']); Works like a charm, thanks Link to comment https://forums.phpfreaks.com/topic/176512-solved-time-and-date-help/#findComment-930478 Share on other sites More sharing options...
RussellReal Posted October 5, 2009 Share Posted October 5, 2009 anytime bro Link to comment https://forums.phpfreaks.com/topic/176512-solved-time-and-date-help/#findComment-930481 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.