Date Validation Function? - Forum

Forum Navigation
You need to log in to create posts and topics.

Date Validation Function?

Anyone already have a quick date validation function in VB or JScript?

A basic one to check the format will do but if it checks not only the format but actual dates also that would be great.
I tried a number of RegEx examples online and every one came back with an error.

Thanks.

@pauljonestindall

Take a look at this ... scripted Logic - neoHOW7

if it does not meet your needs, you can ...

  • either modify it
  • or post your exact requirements here

@gaev

Thanks. I'll give it a look.

@pauljonestindall

From your other post ...

I found that the postgresql database would not accept an invalid date.
In my text entry object I can type in an invalid date but when I use dbpSaveEdits, the field would not populate or if the field is already populated, it would not save the change. With no notification. So, I'd rather validate the date at the point of entry.

Good practice no matter what the target DB.

Also, specifying content for date fields gets tricky (if i recall, you have to surround the date with ## characters).