cancel
Showing results for 
Search instead for 
Did you mean: 

Date Format dd/MM/yyyy?

Former Member
0 Kudos

Hi,

I am executing RFC app. My requirement is tht I need to give the date in dd/MM/yyyy format and in table it should be displayed in the same format. By using simple type i can give in the format as i need. But in the table, its coming like MM/dd/yyyy format. I need to change this. In backend, Its coming dd/MM/yyyy only. Why it change while displaying in the webdynpro table? Help me out to rectify this...

GS

Accepted Solutions (1)

Accepted Solutions (1)

nikhil_bose
Active Contributor
0 Kudos

seems as browser issue. Please add Language Engish(United Kingdom) and make it as default.

let me know status

nikhiL

Former Member
0 Kudos

Hi Nikhil,

I have changed as u told. Problem remains the same....I think we have to use some separate class to rectify this issue...

GS

Edited by: Sathishkumar GS on May 20, 2008 9:00 AM

nikhil_bose
Active Contributor
0 Kudos

did you restart browser after changing language?

try changing system language as sunitha suggested. but normally it should be effected by changing the browser language only.

try checking Dynpro Application properties, usually that would set as English US (OS)

nikhiL

Former Member
0 Kudos

hi,

I have done all the things.. still the same issue continues...shall we have any class regarding this ..pls search for tht ...we may get any idea...

GS

Former Member
0 Kudos

Hi,

Try

Format formatter = new SimpleDateFormat("dd/MMM/yyyy");

String s = formatter.format(date);

OR

Assuming your context attribute name is Date

IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("Date");

attributeInfo.getDataAttribute().getScalarType().format("dd/MM/yyyy");

Regards

Ayyapparaj

Former Member
0 Kudos

Excellent Ayyaparaj..

Problem solved... Thanks..

GS

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sathish,

In the JCO connections you use to connect to backend change the language to English(United Kingdom).

Best Wishes,

Idhaya R

Former Member
0 Kudos

Hi ,

try the below 2 options they ill work - in changing date format

1) Try changing the language of the user to English UK in UME

or

2)goto ControlPanel ->Regional n Language option change language to English UK

Regards,

Sunitha