⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠
Posted 08 July 2013 - 04:47 AM
Posted 08 July 2013 - 19:03 PM
It is very simple. You can define the columns of your display that you need (making sure you add the date & time columns too) and on both of them, you can make a column_callback where for the date field, you just return the date extracted from datetime field of yours and other column, just time..
Posted 09 July 2013 - 02:47 AM
Posted 09 July 2013 - 09:25 AM
As [member=amit shah] suggested just do (on your controller),
$crud->callback_column('date', array($this, '_cb_date'));
and then
public function _cb_date($value, $row)
{
$my_time = date("H:i:s",strtotime($value));
return '<div class="text-left">' . $my_time . '</div>';
}
Posted 25 July 2013 - 22:34 PM
Dios los Bendiga muchas gracias por su colaboración
me funciona perfecto
Cordial saludo
Posted 28 August 2014 - 13:59 PM
Thank you, Davidoster!!!
I was with the same problem, but I need the d-m-Y. I just changed and it worked very well!
Big big Thank you!