KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

How ti display time in table? #242

Open Jenicek opened this topic on on Apr 10, 2018 - 2 comments

Jenicek commented on Apr 10, 2018

Hi,

in ...view.php I have this code:

"time"=>array(
    "label"=>"TIME",
    "type"=>"date",
    "format"=>"H:i:s",
    ),

I am getting "01:00:00.000000" value in the table. How can I edit code to get "01:00" value?

Thanks

KoolReport commented on Apr 11, 2018

Please try this:

"time"=>array(
    "label"=>"TIME",
    "type"=>"datetime",
    "format"=>"H:i:s.u",
    "displayFormat"=>"H:i"
   ),
Jenicek commented on Apr 11, 2018

Perfect! It works. Thank you

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None