AnsweredAssumed Answered

IsValid() on date entry issue

Question asked by MichielEilbracht on Feb 27, 2013
Latest reply on Feb 27, 2013 by MichielEilbracht

Title

IsValid() on date entry issue

Post

     Hi all,

     I just needed a quick way to validate a date entry using a Custom Dialog, so I used IsValid ( date_field ) in a script...

     Funny enough, when I enter "31-12-201" it returns 1 (validated).

     Of course the year 201 is a valid year...but not what I want...is there a way to limit this to, say, from 1900 and so on, or do I need to make a custom function? Normally I validate dates using the table settings, etc, but I just came accross this...

     Thanks!

     Michiel

Outcomes