Getting pattern string from java SimpleDateFormat

Posted by D Lawson on Stack Overflow See other posts from Stack Overflow or by D Lawson
Published on 2010-05-03T21:46:15Z Indexed on 2010/05/03 21:58 UTC
Read the original article Hit count: 246

Filed under:
|

I have a SimpleDateFormat object that I retrieve from some internationalization utilities. Parsing dates is all fine and good, but I would like to be able show a formatting hint to my users like "MM/dd/yyyy". Is there a way to get the formatting pattern from a SimpleDateFormat object?

© Stack Overflow or respective owner

Related posts about java

Related posts about simpledateformat