idiotstrike Posted December 2, 2010 Share Posted December 2, 2010 Hey guys, I've got a problem. Can anybody show me how to do it? Let's say there are 4 input fields: Year, month, day and hour. The user fills them like 2010, 12, 2, 3; and then I need a function to convert that date to datestamp with GMT +1. I was googling a whole afternoon, however came up with nothing. Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/220415-input-date-to-datestamp/ Share on other sites More sharing options...
requinix Posted December 2, 2010 Share Posted December 2, 2010 date_default_timezone_set + mktime. Link to comment https://forums.phpfreaks.com/topic/220415-input-date-to-datestamp/#findComment-1142042 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.