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
>