Bug 17448 - Add custom strftime() format for dateformat
Summary: Add custom strftime() format for dateformat
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-14 15:02 UTC by Barton Chittenden
Modified: 2016-10-14 15:02 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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