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

Date and Time Input Validation

Anyone know a good way to validate date and time that a user is entering on the screen. Our users want to enter AM and PM time vs. Military time.

Also, since Input fields don't have an "onBlur" command, what are other companies using in java script.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2004 at 10:14 AM

    We had a similiar problem.

    We read the inputfield as a string and simply used string manipulation to alter the time format. We knew there was a : and AM or PM or am or PM so we just played around, we eventually changed it to force military time format due to type errors and people using a mix of time formats.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2004 at 04:21 PM

    Hi Anthony,

    try these two function modules:

    CONVERT_TIME_INPUT

    CONVERT_DATE_TO_INTERNAL

    Check results depend on time zone system settings or user settings in su01

    regards, Ulli

    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.