By sisyphus on
drupal store date and time using UNIX timestamp. i would like to write some modules using stored timestamp in the tables. is there any drupal function to convert the timestamp to date and time format?
thanks a lot.
drupal store date and time using UNIX timestamp. i would like to write some modules using stored timestamp in the tables. is there any drupal function to convert the timestamp to date and time format?
thanks a lot.
Comments
use....
Use this to convert timestamp to date format,
date('m-d-Y',$timeStamp)
$timeStamp is timestamp you retrieve from database.