How I can split {recordtime} to date and time?
I can not extract the date from {recordtime}.
I've the same problem of:
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=12&t=17660&p=49636&hilit=recordtime#p49636
Help me please!
Thanks
Lapo
I can not extract the date from {recordtime}.
I've the same problem of:
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=12&t=17660&p=49636&hilit=recordtime#p49636
Help me please!
Thanks
Lapo
Hi lapo,
Try
Bob
Try
<?php
$date_time = explode(' - ', $MyRow->recordtime);
$date = $date_time[0];
$time = $date_time[1];
?>
Not tested and will need debugging.Bob
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.
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.