pathikrit pathikrit - 1 year ago 126
Java Question

Get original pattern String given a JDK 8 DateTimeFormatter?

Related to my question here - how do I get the original

String given a

Answer Source

It's been asked on the mailing list and the answer is that it is not possible because the original pattern is not retained.

The same thread suggests using a DateTimeFormatterBuilder which does have the information.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download