posted 18 years ago
You can use DateFormat class. Refer to the Code below
This code gave the following output
13 April 2005 16:53:46 GMT+05:30 //Locale was UK
April 13, 2005 4:54:56 PM GMT+05:30 //Locale was US
13 aprile 2005 16.56.29 GMT+05:30 //Locale was ITALY
13 avril 2005 16:59:55 GMT+05:30 //Locale was FRENCH
Hope this helps.