Having trouble converting the date $tour['tourdate'] into formatted date within the admincp.
Here's my code which displays the unformatted date just fine:
PHP Code:
function print_tour_row($tour)
{
print_cells_row(array(
"<a href=\"erc_edittour.php?tourid=".$tour['tourid']."\">" . $tour['tourdate'] . "</a>",
$tour['artisttitle'],
"<a href=\"erc_editvenue.php?venueid=".$tour['tourvenueid']."\">".$tour['venuetitle']."</a>",
$tour['venuecitystate'],
$tour['tourid'],
$tour['tourstatus'],
"<input type=\"radio\" name=\"idforaction\" value=\"" . $tour['tourid'] . "\">
"));
}
But when i try to format the date using vbdate as follows, the date completely disappears

:
PHP Code:
function print_tour_row($tour)
{
print_cells_row(array(
"<a href=\"erc_edittour.php?tourid=".$tour['tourid']."\">" . vbdate($vbulletin->options['dateformat'], $tour['tourdate']) . "</a>",
$tour['artisttitle'],
"<a href=\"erc_editvenue.php?venueid=".$tour['tourvenueid']."\">".$tour['venuetitle']."</a>",
$tour['venuecitystate'],
$tour['tourid'],
$tour['tourstatus'],
"<input type=\"radio\" name=\"idforaction\" value=\"" . $tour['tourid'] . "\">
"));
}
Any idea what i could be doing wrong? I was looking at announcement.php and the date is formatted in the same manner (i think) as i am trying, but i must be missing something...