OpenESignForms / openesignforms

Open eSignForms is the first open source SaaS web contracting platform
https://open.esignforms.com
107 stars 50 forks source link

Allow a date to include an ordinal day number #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Create a date field. Note that Java date formats do not support ordinal day 
numbers, for values like 

1st day of January, 2013
5th day of August, 2013

Original issue reported on code.google.com by yoz...@gmail.com on 9 Aug 2013 at 1:15

GoogleCodeExporter commented 9 years ago
We now support the specification of the literal string ORD to appear in a date 
format such that after Java does it's date formatting, if we note the ORD is 
still in the string, we attempt to find the number IMMEDIATELY preceding it 
(there must be at least one digit before or the ORD will not be replaced).  The 
preceding number is considered over when there are no more characters ahead of 
it or when it find a non-digit.

Ensure the format uses 'ORD' (with the quotes) to ensure the date format does 
not attempt to interpret it.  You can use 'ORD day of' to put the ordinal and 
literal 'day of' in the output format.

Added to the release 13.8.10.

Original comment by yoz...@gmail.com on 9 Aug 2013 at 1:17