Display the crtime


I have a script that organized data entries by the date submitted through the crtime function. How do I display the crtime. What would be the php code to display the date that the item was created ?

crtime is not a built in php function.

try just echo / vardump crtime and show what the value is.

that sounds like it could be a custom function with the script and not a regular PHP function. you should dig through the code and find other examples of how they used crtime.

I noticed that it uses the .time(). to store the date added and when stored in the database it looks like this: 1164408499
how would i make that a date like: 11/11/2006 ? or whatever date that may be.

if u use a timestamp is stored in $row[‘crtime’], then it would be:

Code:

$dateadded = date("m/d/Y",$row['crtime']);