Skip to Content

Date Field

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Nov 04, 2004 at 03:18 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • Posted on Nov 04, 2004 at 03:05 PM

    Hi,

    Any solution will be a great help.

    Regards

    Sidharth

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.