[OPEN-ILS-GENERAL] Receipt template date formats?
Holly Brennan
haderhold at ci.homer.ak.us
Thu Oct 1 19:13:13 EDT 2015
Jane -
This:
%SUBSTR(-42,-100)%%TODAY%%SUBSTR_END%
.....will give you this:
Thu Oct 01 2015
......If you're in Alaskan Daylight Time like me. :) Adjust the first number (42) to subtract the correct number of characters for your time zone.
-Holly
-----Original Message-----
From: Open-ils-general [mailto:open-ils-general-bounces at list.georgialibraries.org] On Behalf Of Jason Etheridge
Sent: Thursday, October 01, 2015 1:46 PM
To: Evergreen Discussion Group
Subject: Re: [OPEN-ILS-GENERAL] Receipt template date formats?
One option is to use the Library Setting, "Format Dates with this pattern", but it's a sledgehammer that would affect almost every displayed date in the staff client.
The codes for this are better documented here:
http://dojotoolkit.org/reference-guide/1.10/dojo/date/locale/format.html
You'd want four consequtive capital E's. For example, "EEEE, MMM d, yyyy" in that setting would give you dates like "Thursday, Oct 1, 2015"
--
Jason Etheridge
| Community and Migration Manager
| Equinox Software, Inc. / The Open Source Experts
| phone: 1-877-OPEN-ILS (673-6457)
| email: jason at esilibrary.com
| web: http://www.esilibrary.com
More information about the Open-ils-general
mailing list