Current local time in phoenix arizona8/11/2023 ![]() ("MST equivalent time : " + mstFormmater.format(timeTest)) īut if we change the Calendar without changing the Dateformat, the output will be same for the Timezone-Format(MST, US/Arizona, US/Mountain ). tTimeZone(TimeZone.getTimeZone("US/Mountain")) SimpleDateFormat mstFormmater = new SimpleDateFormat("hh:mm aaa") ("Arizona equivalent time : " + arFormatter.format(timeTest)) ![]() SimpleDateFormat arFormatter = new SimpleDateFormat("hh:mm aaa") ĪtTimeZone(TimeZone.getTimeZone("US/Arizona")) String localTime = localFormater.format(timeTest) SimpleDateFormat localFormater = new SimpleDateFormat("hh:mm aaa")
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |