Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Data Model Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Setting date format for GridField value in ModelAdmin


Go to End


1022 Views

Avatar
jeffwhitfield

Community Member, 3 Posts

19 July 2013 at 2:23am

I'm working on an implementation that uses the Blog module and another module called LargeBlog (https://github.com/icecaster/silverstripe-largeblog). The LargeBlog module creates a ModelAdmin using the BlogEntry class and also adds a DataExtension for the BlogEntry class to update the configuration for the ModelAdmin. What I'm trying to do is add the Date field for BlogEntry to $summary_fields, which works just fine, and update the formatting of the date shown on the GridField. However, I'm banging my head against a wall trying to figure out how to actually format the date. Any help would be most appreciated. :D