How can I get default Date and Time format pattern
<p>Could somebody tell me how can I get the default date and time format pattern(String) for specified locale(or default locale).</p>

<p>What I already found (Could be useful for somebody else):</p>



<ol>
<li><p>How to get default locale.</p>

<pre class="lang-java prettyprint-override"><code>Locale currentLocale= Locale.getDefault();
System.out.print(currentLocale.toString());

Result is "en_US"
</code></pre></li>
<li><p>How to get decimal separator.</p>

<pre class="lang-java prettyprint-override"><code>DecimalFormatSymbols decimalFormatSymbols =
                                     new DecimalFormatSymbols(currentLocale);
System.out.print(decimalFormatSymbols.getDecimalSeparator());

Result is "."
</code></pre></li>
<li><p>How to get the default Date and Time format pattern (String);</p>

<pre class="lang-java prettyprint-override"><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></pre></li>
</ol>

<p>Thanks a lot.</p>

<p><strong>UPD:</strong>
Found solution:</p>

<pre class="lang-java prettyprint-override"><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></pre>
