Skip to Content
author's profile photo Former Member
Former Member

Date Format Validation

Hi all,

In one of my web dynpro's I set the date format to yyyyMMdd. When i push a button there's automatic validation of the date and he complains about the format: The error message i get is: Enter the value in the format 19871125 and my entered date is 20070827 ...

When i select the date from the date picker, he puts it in the correct format, but the validation keeps failing. When i set format to yyyy.MM.dd for example, the validation does not fail.. Is this some kind of bug or is there a logical explanation for this?

Kind regards,

J.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 27, 2007 at 08:34 AM

    Hi Joren,

    Where are you setting the date format in yyyyMMdd i mean programatically or in user profile..

    if your entered date is not matched with the user profile(Ex: English US)

    it will always shows error.

    Regards

    Chaitanya.A

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I'm setting the format programatically...

      When i check locale in web dynpro content it says the following about the current session:

      Current locale: en

      Default VM locale: en_US

      Kind regards,

      J.

  • author's profile photo Former Member
    Former Member
    Posted on Aug 27, 2007 at 09:40 AM

    the correct format 4 d date z yyyy.MM.dd if it z d US locale

    http://java.sun.com/j2se/1.3/docs/api/java/text/SimpleDateFormat.html

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2007 at 10:51 PM

    This was a bug. A patch by sap should solve the issue.

    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.