on 10-26-2005 7:34 PM
DEar ALL,
i have a date in the modal table, this value is coming from r/3 in yyyymmdd format. But i need to change its format to dd.mm.yyyy. How can i achieve it..i don't want to create my own table...pls suggest
Regds,
Anup.
Hi Anup,
Is the field that is coming from R/3 of type DATE?
If yes then the conversion of the date should be automatic, and the display will be according to your locale, user language, browser language.
You can set the format using
String date = (new SimpleDateFormat("MM/dd/yyyy").format(new java.util.Date()));
Hope this helps.
Regards,
Shubham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prakash,
If you have a field of type 'Date' in the RFC and you bind this to a UI element(textview/inputfield), then this will be displayed in your 'view' depending on your User Language in J2EE User Admin, browser language and your locale settings. For dd.MM.yyyy format, all should be en-us.
Regards,
Shubham
User | Count |
---|---|
85 | |
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.