Ive got this script that adds some stuff into a database and when it does this one of the fields is set to TIMSTAMP so that it will put in the current time...
But i dont understand how to then use it. Because timestamp is just a bunch of numbers, 8 i think. How do I put that into the real time format. eg:
HH:MM:SS DD:MM:YY
thanks
Comments
$date = date("d/m/Y G:i:s","$grab[time]");
and so when the $date variable is called it will display something like: 20/1/2005 23:54:05
- Hoped this helped.
The Royal Ram
then you can call it using
and this the style it displays "2005.01.25 - 9:05 PM".
you can format the $formated variable to your liking.
-Dan
Daniel L. Rust - Lead Architect
Seattle, WA
The Royal Ram