I don't think so. Just from using it enough, I believe it takes the format from the date(), so a variable would do nothing. If you want to print a date with your variables, I would suggest doing something such as this:
$format = "$day-$month-$year"; // 31-8-2010
$date = new DateTime($format);
echo $date->format('d-m-Y'); // 31-8-2010
echo $date->getTimestamp(); //1283308069 or something
thanks for the two above they both return the same date value's for the data that was entered. however is it possible to have all the numbers after 2010 to disapear?
and maybe have it in 04 Sept 2010 format???
been tryin but getting nowhere. if you can help i would greatly appriciate it.