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.

Data Model Questions

Setting date format for GridField value in ModelAdmin


Reply

371 Views

Avatar
jeffwhitfield

19 July 2013 at 2:23am Community Member, 2 Posts

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