close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Date validation

Thread began 3/12/2012 3:39 pm by h150477 | Last modified 3/13/2012 6:28 am by h150477 | 981 views | 1 replies


Date validation

Whilst the date validation server behaviour gives the option of accepting yyyy-mm-dd date format - like 2012-03-13, the instructions indicate that I must use the following date formats:

For european date formats day[-/.]month[-/.]year, enter dates dd/mm/yyyy.

For all other dates, enter in the form mm/dd/yyyy.

I am trying to validate my date in the MySQL format of yyyy-mm-dd as the page being validated is an insert record page, where the input goes straight into a MySQL date field. As far as I know, if I send the date in the wrong format, MySQL may not accept it.
Its also a bit difficult to work out what to put in the mindate and maxdate fields.
I am using this field to hold the expiry date of an event, normally 6 months after insertion. When that date has passed, the event will not show up in the event list, and will be deleted when anyone looks at the event list after that time.

Is it possible to validate a yyyy-mm-dd date in an insert record form and send it direct to the database without additional processing?

Or do you have to validate a dd-mm-yyyy date and then convert it to yyyy-mm-dd on a subsequent page before inserting the record?

All suggestions welcomed.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...