title: Get format pattern directly from a Date object in Java
body: <p>I have a Date object but I don't know its format pattern. Is there some way to get the format pattern of a Date object directly from the object itself?</p>