If this isn't what you are looking for let me know...
The following code outputs 09-11-02
PHP Code:
<?
echo date ("m-d-y", mktime (0,0,0,1,254,2002));
?>
If you would rather it output it in 09/11/02 format change the m-d-y to m/d/y
Other than that I am pretty sure I understood you.
Above the 1 is the month of January.
The 245 is the days from day 0 of that month. The 2002 is the day.
So basically mktime() returns the UNIX time stamp for 245 days after Jan 0, 2002. Then the date function converts it to m/d/y format...
EDIT:
If you would rather call a function instead of useing that format in each location you can do this.
PHP Code:
function return_date($day, $year)
{
return date("m/d/y", mktime (0,0,0,1,$day,$year));
}
Then you can call it like:
PHP Code:
$my_date = return_date('254', '2002');
echo $my_date;
Regards,
Michael