Forums

Split {recordtime}

GreyHead 18 May, 2010
Hi lapo,

Try
<?php
$date_time = explode(' - ', $MyRow->recordtime);
$date = $date_time[0];
$time = $date_time[1];
?>
Not tested and will need debugging.

Bob
tamarteleco 27 May, 2010
Hi Bob,
Where I should place this code, in "Connetion View Settings", Body??

I display, the recordtime, and I would like to show only the date, not the hour-minutes...

Thanks.

Sorry, I found the solution:
<?php
$date=explode(' ',$MyRow->recordtime);
echo $date[0];
?>

Thanks.
This topic is locked and no more replies can be posted.