No, we don't provide any access to the pattern, except for style based ones: http://joda-time.sourceforge.net/api-release/org/joda/time/format/DateTimeFormat.html#patternForStyle(java.lang.String,%20java.util.Locale)
This is because of the way we pre-parse the patterns in our internal representation. Stephen [EMAIL PROTECTED] wrote: > Is it possible to get the pattern string representation of a > DateTimeFormatter? > > Even if some information gets lost and the pattern is a simplified > representation, because there is no pattern representation for it (as > explained in freaky formatters in the user guide) it would be extremly > helpfull because my central input routines for date and time values > (prepocessing and completing input) heavily relay on it (for example to > know the order of day and month "dd.MM.yyyy" or "yyyy-MM-dd" or anything > else). > > Till now I used java.text.SimpleDateFormat.toPattern() for this but as I > now try to change to joda-time I want to use the DateTimeFormatter to > get rid of java.util.Date related dependencies as much as possible. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Joda-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/joda-interest > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Joda-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/joda-interest
