niche Posted September 9, 2011 Share Posted September 9, 2011 Is there a php function what will turn "time()+3600" into a YYYY-MM-DD HH:MM:SS timestamp? I've been through the manual's and nothing stuck-out. Link to comment Share on other sites More sharing options...
jeffman Posted September 9, 2011 Share Posted September 9, 2011 This will get you a string like that: date('Y-m-d H:i:s', time() + 3600); I just now generated "2011-09-09 11:42:57" Edit: changed to colons in the time section Link to comment Share on other sites More sharing options...
niche Posted September 9, 2011 Author Share Posted September 9, 2011 Thanks DD! I was looking at it, but couldn't see it without your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.