Search the web
Sign In
New User? Sign Up
validation · Techniques for HTML form validation
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Date-Time Validation Javascript   Message List  
Reply | Forward Message #389 of 427 |
Re: Date-Time Validation Javascript

are you using the validation script from the Files section? if you
are, you only need to set the datetime attribute of the field you want
to validate:

<input name="date" id="date" type="text" datetime="MM/DD/YYYY hh:nn:ss" />

or

document.getElementById("date").datetime = "MM/DD/YYYY hh:nn:ss ampm";

if you want to use a 24 hour clock, use hh24 instead of hh. if not,
i'd recommend using the ampm token, though no tokens are required.

--- In validation@yahoogroups.com, "Shree" <l504850@e...> wrote:
>
> Can anyone help me in providing the Date-Time validation function in
> Javascript? The required format is MM/DD/YYYY hh:mm:ss
>
> Thanks
> Raj
>








Sat Jan 7, 2006 12:51 am

somematt
Offline Offline
Send Email Send Email

Forward
Message #389 of 427 |
Expand Messages Author Sort by Date

Can anyone help me in providing the Date-Time validation function in Javascript? The required format is MM/DD/YYYY hh:mm:ss Thanks Raj...
Shree
yanamala1
Offline Send Email
Jan 5, 2006
10:25 pm

are you using the validation script from the Files section? if you are, you only need to set the datetime attribute of the field you want to validate: <input...
somematt
Offline Send Email
Jan 7, 2006
12:52 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help