cancel
Showing results for 
Search instead for 
Did you mean: 

Date Field

sid-desh
Advisor
Advisor
0 Kudos

Hi,

I have a date field on my view. I want that indepedent of the Locale it should always show the date in MM/dd/yyyy format. It means that if the user selects a date from the date picker the date should be shown in the above format only.

As of now the display of the dates in dependent on the locale.

I tried creating a simple type and giving the format but it does not work.

Please give suggestions.

Regards

Sidharth

Accepted Solutions (0)

Answers (2)

Answers (2)

uwe_reeder
Explorer
0 Kudos

Hi Sidharth,

I'm quite astonished by this request. I'd expect that every user expects to see dates in his/her own Locale.

Nevertheless, it is possible to have the date formatted to your wishes by setting the Format qualifier in the simple type. (It is indeed directly passed to java.text.SimpleDateFormat.) But the problem is the date picker. It always works with the current locale. So you end up with a field that doesn't accept the date that you entered via the date picker...

So it's not really recommendable in NetWeaver 04. For future releases, enhancements are planned, especially for the date picker.

Regards,

Uwe

nol_hendrikx
Active Contributor
0 Kudos

Hi Uwe,

We had the same problem last August and created a customer message for it. There is a fix, to replace the current .js file with a .js file that allows the correct date.

SAP told us this should be fixed in NW04 SP9. After upgrading to SP9 the problem is still there. Too bad, since this is basic javascript development (dhtml - javascript + css).

Could you tell us in which stack this problem is solved?

I have created another customer message for this problem.

Kind regards,

Noel

sid-desh
Advisor
Advisor
0 Kudos

Hi,

Any solution will be a great help.

Regards

Sidharth