on 12-07-2016 10:55 AM
Is it possible to have a date format for a locale. ?
Hi Praveen, If you are asking how to get the current locale, use
UISessionUtils.getCurrentSession().getGlobalDataLocale()
for getting the current locale.
Cheers,
Jithin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
Yes in java we can achieve with below code,
DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, yourLocale);
String formattedDate = df.format(yourDate);
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.