org.joda.time.format.DateTimeFormat help

Paul B. Henson henson at cpp.edu
Fri Jun 9 15:45:51 EDT 2017


On Thu, Jun 08, 2017 at 07:31:17PM -0700, Greg Haverkamp wrote:

> 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.

Right; but that's for generating a date string from a date, I was trying
to parse a date string into a date. Maybe I missed it, but there didn't
seem to be different documentation for that, and perhaps it was just me,
but it was rather confusing to try and figure out what to do :(.

-- 
Paul B. Henson  |  (909) 979-6361  |  http://www.cpp.edu/~henson/
Operating Systems and Network Analyst  |  henson at cpp.edu
California State Polytechnic University  |  Pomona CA 91768


More information about the users mailing list