aspose file tools*
The moose likes Beginning Java and the fly likes Date to be returned as a locale specific string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Date to be returned as a locale specific string" Watch "Date to be returned as a locale specific string" New topic
Author

Date to be returned as a locale specific string

vijay kumarg
Ranch Hand

Joined: Dec 14, 2006
Posts: 105
How to generate a java.util.Date as a Locale specific string?
John Bartlett
Ranch Hand

Joined: Jan 25, 2006
Posts: 116
Hi,

Could you not use Calendar instead.

Then once the locale/timezone specific date is setup you could just use the getTime() method to pull back the Date Object.

John
[ December 15, 2006: Message edited by: John Bartlett ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Date to be returned as a locale specific string