org.joda.time.format.DateTimeFormat help
Greg Haverkamp
gahaverkamp at lbl.gov
Thu Jun 8 22:31:17 EDT 2017
On Thu, Jun 8, 2017 at 5:43 PM, Paul B. Henson <henson at cpp.edu> wrote:
> Seems a bit user unfriendly. Would you ever use just one M in a match?
> Only if you were restricting your dates to January through September in
> numeric non-zero filled form 8-/?
>
It says:
Number: The _minimum_ number of digits. Shorter numbers are zero-padded to
this amount.
...
Month: 3 or over, use text, otherwise use number.
So, "M" sets the minimum number of digits, not the maximum. So, M gives
you 1-12, unpadded, while MM should give you 01-12, padded.
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20170608/64c3201c/attachment.html>
More information about the users
mailing list