cancel
Showing results for 
Search instead for 
Did you mean: 

Change mm/dd/yyyy to dd/mm/yyyy when selecting date via dateSelector??

Former Member
0 Kudos

Hi Experts,

i have attribute of date type that has been binded to input field in a web dynpro Java application. when application is executed user can select a date via DateSelector that appears automatically.

Problem is after the date has been selected input field is populated in mm/dd/yyyy format ( ex 03/28/2008). My client wants that to be changed . It must read 28/03/2008 (dd/mm/yyyy).

I tried creating simple type using base type Date and setting representation dd/MM/yyyy however that does NOT work!!

Edited by: Eureka on Mar 28, 2008 5:30 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Simple type with representation dd/MM/yyyy works for me.

Here is what I have done.

Create a simple type

Name :testDateFormat

package : com.test

Dictionary : Local Dictionary

Built-In-Type : Date

In the Representation Tab :

Format : dd/MM/yyyy

In the WD view created a context of type : com.test.testDateFormat and assinged the context to the inputfield

Now I see date format dd/MM/yyyy, make sure the u specify the correct format.

regards,

AE

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Eureka,

You can set the Default language setting of your browser to solve this problem; Let the Language to be English UK (en-gb) and restart the browser;

The same problem happen to me and i could solve it the same way.

Regards

- Vinod

*

Former Member
0 Kudos

Hi

Once if ur problem has solved make the question has solved

Regards

Hazrath

Former Member
0 Kudos

Hi

1)Create a simpletype of type date and there go to the representation tab and u can give

the format=dd/MM/yyyy

2)Then create a context attr of type as simple type and attch this to the value property of the inputfield

Regards

Hazrath