[threeten-dev] How to get pattern as a String from DateTimeFormatter
Stephen Colebourne
scolebourne at joda.org
Mon Mar 2 19:38:45 UTC 2015
The pattern is not retained, so this cannot be done.
Stephen
On 2 March 2015 at 18:50, Rodrigo Uchôa <rodrigo.uchoa at gmail.com> wrote:
> After building an instance of DateTimeFormatter, is it possible to extract
> from it the pattern as a String?
>
> Something like this:
>
> DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MM/dd/yyyy");
> String pattern = formatter.toPattern(); //example
>
> Is there any way this can done?
>
> Regards!
More information about the threeten-dev
mailing list