Bug 17448

Summary: Add custom strftime() format for dateformat
Product: Koha Reporter: Barton Chittenden <barton>
Component: Architecture, internals, and plumbingAssignee: Galen Charlton <gmcharlt>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Barton Chittenden 2016-10-14 15:02:02 UTC
Add a 'Custom - strftime' option dateformat and TimeFormat

dateformat
DateFormatString
Format dates using [Custom - strftime] where format string is []

See
man 3 strftime for format options

This would allow us much more flexibility in date format, e.g. if

dateformat = "custom"
DateFormatString = "%d-%b-%Y"

       %d     The day of the month as a decimal number (range 01 to 31).
       %b     The abbreviated month name according to the current locale.
       %Y     The year as a decimal number including the century.

Would display the date 2016-10-14 as

    14-Oct-2016