Date Format in Record List

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 18, 2013   (RSS)

By pault - March 18, 2013

Hi,

Under 'General Settings', there's a setting for the date format, either 'Day Month Year' or 'Month Day Year'.  This appears to affect the drop down date selection when editting records but not the display of dates when listing all records for a particular section.

I've found in list_functions.php, link536 the 'Y-m'd' format and wondered if you'd be able to change this for a future release please so that it formats the date based on the setting?

Thanks, Paul.

By pault - March 18, 2013

Hi Ross,

Thanks, I know how to use date() on web pages but a customer has mentioned that in the listing of records within the Admin interface then date fields are shown as m-d-Y, regardless of the format defined in General Settings.

I don't mean the code generator, it's just in the CMS Builder admin pages.  I found the code that defines this on line 536 in list_functions.php

    if (@!$fieldSchema['showTime']) { $displayValue = date("m-d-Y", strtotime($record[$fieldname])); }

I just wondered if this could be updated to use the General Settings.

Thanks, Paul.