Sam Granger Posted November 14, 2007 Share Posted November 14, 2007 In php, I want to have a form with a hidden field containing the current datetime. Eg: 2007-11-14 12:28:31 (year/month/day hour/minute/second). How can I achieve this? Link to comment https://forums.phpfreaks.com/topic/77297-solved-echo-current-datetime/ Share on other sites More sharing options...
aschk Posted November 14, 2007 Share Posted November 14, 2007 echo date('Y-m-d h:i:s'); Link to comment https://forums.phpfreaks.com/topic/77297-solved-echo-current-datetime/#findComment-391345 Share on other sites More sharing options...
Sam Granger Posted November 14, 2007 Author Share Posted November 14, 2007 Thanks! Link to comment https://forums.phpfreaks.com/topic/77297-solved-echo-current-datetime/#findComment-391358 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.