How to get current date based on time zone or locale, or user preference?
<p>If my web application is deployed in the US I will get US time regardless of the client's country. But if the client is in India, he should get Indian time, either using the time zone or locale or user preference. What should I do?</p>

<pre><code>Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("US/Mountain"), Locale.US);
System.out.println(calendar.getTime());
</code></pre>

<p><strong>Output: Fri Jul 02 12:15:35 IST 2010</strong>
Here I am getting IST time. But I need US/mountain time.</p>
