This topic is locked

Time Format

9/24/2009 6:39:26 AM
PHPRunner General questions
G
glazer author

In my application I have a list view with a Time field. This is displayed always as h:m:s How can I change it to not display the seconds?

J
Jane 9/24/2009

Hi,
use custom format on the "View as" settings dialog on the Visual Editor tab.

Here is a sample:

if ($value)

$value = date("G:H",strtotime($value));