⚠ 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

How display in date format in the read view



Margarita Mota

Margarita Mota
  • profile picture
  • Member

Posted 24 January 2017 - 16:52 PM

Hi, I save on my table "last_user_update" on unix date format, but I want to show to the users of the grocery crud, when they go to see one record the date but in format D:M:Y and i didnt find how do it.
 
 
Somebody can help me please?

 


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 25 January 2017 - 11:18 AM

Well check if the code have callback_read as option .. if not, you can do it using callback_field

but u do it only when the state of the application is in read mode.. else it will create impact elsewhere too..

 

Happy GCing :)


Athar

Athar
  • profile picture
  • Member

Posted 25 January 2017 - 14:26 PM

try this:

/topic/58-date-time-formats/