otuatail Posted October 13, 2009 Share Posted October 13, 2009 Hi I am trying to enter a date and time into a table E_Date` date default NULL, $stamp = time(); $Date = date('Y-m-d H:i:s',$stamp); but when I enter this I get 2009-10-13 I don't get the hours mins and seconds. Desmond. Quote Link to comment https://forums.phpfreaks.com/topic/177589-solved-dificulty-entering-a-date/ Share on other sites More sharing options...
gassaz Posted October 13, 2009 Share Posted October 13, 2009 Check if the data type of the field is datetime Quote Link to comment https://forums.phpfreaks.com/topic/177589-solved-dificulty-entering-a-date/#findComment-936396 Share on other sites More sharing options...
otuatail Posted October 13, 2009 Author Share Posted October 13, 2009 Thanks for that. there are 3 types. Date, Datetime and time. Desmond. Quote Link to comment https://forums.phpfreaks.com/topic/177589-solved-dificulty-entering-a-date/#findComment-936418 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.