[OPEN-ILS-GENERAL] Receipt template date formats?

Holly Brennan haderhold at ci.homer.ak.us
Thu Oct 1 19:34:31 EDT 2015


Just kidding, Jane. I read too many email in between yours just mentioning date, not due date.

-Holly

-----Original Message-----
From: Open-ils-general [mailto:open-ils-general-bounces at list.georgialibraries.org] On Behalf Of Holly Brennan
Sent: Thursday, October 01, 2015 3:13 PM
To: Evergreen Discussion Group
Subject: Re: [OPEN-ILS-GENERAL] Receipt template date formats?

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