cancel
Showing results for 
Search instead for 
Did you mean: 

Convert date in modal binding table into dd.mm.yyyy format

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Shubham,

I think Anup has bind a table directly to the model node context element. Where he is not populating the table through loop in which he can do the format of Date or any other field. Suggest for this scenario.

Regards,

Prakash

Former Member
0 Kudos

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