Converting date long value to current Timezone value
问题 I have a date as long value, I want to display the Date format in words depends upon the country time zone. Please help me in converting this. 回答1: Take a look at the java.text.DateFormat class. It provides several option how to output the current Data and Time. For example the following code prints the current date and time in the long format option for the en_UK locale: DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, Locale.UK).format(new Date()); Prints: 23 January 2012 08