yarub Posted August 7, 2006 Share Posted August 7, 2006 Using the time() function, you can input a ten-digit number into a database or something. However, if you pull that date back out, how could you put it back into time format? I want to make "4738583953" appear as "Aug 07, 2006 04:25:00pm" or whatever it would be.Can anyone help me? Quote Link to comment Share on other sites More sharing options...
Woodburn2006 Posted August 7, 2006 Share Posted August 7, 2006 try this:[code]<?php$currdate = time();$convert = date("d/m/Y",$currdate);echo "Date = $convert<br>";echo "Timestamp = $currdate<br>";?>[/code] 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.