alin19 Posted April 2, 2008 Share Posted April 2, 2008 i need to get the time format from today at time : 00:00:00 but i get this: -1 this is bad: $data=date("Y-m-d"); echo $data; $data=strtotime("Y-m-d",$data); echo $data; outputs 2008-04-03-1 Link to comment https://forums.phpfreaks.com/topic/99144-strtotime/ Share on other sites More sharing options...
ansarka Posted April 2, 2008 Share Posted April 2, 2008 echo date("Y-m-d h:i:s",strtotime("now")); or $data=date("y-m-d"); echo $data; Link to comment https://forums.phpfreaks.com/topic/99144-strtotime/#findComment-507243 Share on other sites More sharing options...
alin19 Posted April 2, 2008 Author Share Posted April 2, 2008 solve it 10x Link to comment https://forums.phpfreaks.com/topic/99144-strtotime/#findComment-507247 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.