on 10-20-2006 9:57 AM
Hi,
I want to display a date dependant of the locale of the user/portal/system settings. I assume the system settings are normally used. So if the user has an english system...use dd-mm-yyyy and if he has a dutch setting use mm-dd-yyyy for example.
I searched on the forum and found a usefull post but there was a link which was broken...see post :
I know that i can use the SimpleDateFormatter for that but i still have to enter a pattern....is it also possible to only supply a locale so it figures out the pattern itself?
Much thanks,
Hugo
Hi Hugo,
Use
DateFormat.getDateInstance(int style, Locale aLocale)
where you get Locale from
WDResourceHandler.getCurrentSessionLocale()
Or use IWDResourceHandler.formatDate().
Regards
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.