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 Quote Link to comment 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; Quote Link to comment Share on other sites More sharing options...
alin19 Posted April 2, 2008 Author Share Posted April 2, 2008 solve it 10x Quote Link to comment 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.