We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I don't understand your question. Can you show your code. On the other hand, if you want use getInstance, you can write code like this :
Locale locale1 = Locale.CANADA;
TimeZone tz1 = TimeZone.getTimeZone("GMT");
Calendar cal1 = Calendar.getInstance(tz1, locale1);
Java Date and Time
You are viewing a single comment's thread. Return to all comments →
I don't understand your question. Can you show your code. On the other hand, if you want use getInstance, you can write code like this : Locale locale1 = Locale.CANADA; TimeZone tz1 = TimeZone.getTimeZone("GMT"); Calendar cal1 = Calendar.getInstance(tz1, locale1);
Source