Date validation in Jscript

Results 1 to 2 of 2

Thread: Date validation in Jscript

  1. #1
    subramanian Guest

    Default Date validation in Jscript

    How to validate a date in Jscript ?

  2. #2
    David Sills Guest

    Default RE: Date validation in Jscript

    Try:<BR><BR>function checkDate(ctrl) {<BR> return ! isFinite(new Date(ctrl.value).getTime());<BR>}<BR><BR>Several books have suggested that isNan should work as well as ! isFinite, but it hasn&#039t worked consistently for me<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •