Wie erhalte ich das Standardformat für Datum und Uhrzeit?

Kann mir jemand sagen, wie ich das Standardformat für Datum und Uhrzeit (String) für das angegebene Gebietsschema (oder das Standardgebietsschema) ermitteln kann?

Was ich bereits gefunden habe (Kann für jemand anderen nützlich sein):

So erhalten Sie das Standardgebietsschema.

<code>Locale currentLocale= Locale.getDefault();
System.out.print(currentLocale.toString());

Result is "en_US"
</code>

So erhalten Sie ein Dezimaltrennzeichen.

<code>DecimalFormatSymbols decimalFormatSymbols =
                                     new DecimalFormatSymbols(currentLocale);
System.out.print(decimalFormatSymbols.getDecimalSeparator());

Result is "."
</code>

So erhalten Sie das Standardformat für Datum und Uhrzeit (String);

<code>(do something)
System.out.print(something);
And got at output something like this: "dd/mm/yyyy" or "hh:mm:ss".. 
                             or other values for specified locale.
</code>

Danke vielmals.

UPD: Gefundene Lösung:

<code>SimpleDateFormat simpleDateFormat = new SimpleDateFormat();
String dateLocalizedFormatPattern = simpleDateFormat.toLocalizedPattern();

The result of System.out.print(dateLocalizedFormatPattern) 
                                             on my device is "M/d/yy h:mm a".
</code>

Antworten auf die Frage(2)

Ihre Antwort auf die Frage