⚠ 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. ⚠

  •     

profile picture

display only date



amipax
  • profile picture
  • Member

Posted 23 October 2012 - 20:50 PM

hello,

i have a two datetime fields on my database , one used for storing starting date , the other stores ending date respectively,I want to get rid of the time displayed. see images for more reference.

thanks in advance

Srowako
  • profile picture
  • Member

Posted 30 October 2012 - 13:32 PM

Dear amipax,
I am trying to help your Question
try this code ex:


$crud->change_field_type('employee_datebirth','date');
or
$crud->change_field_type('my_date','date');


Documentation