I have a form input with id 'date_trans'. The format for entering this date (which is a server-side check) can be any of:
- dd / mm / yyyy
- dd-mm-yyyy
- yyyy-mm-dd
- yyyy / mm / dd
However, before submitting the form, I would like to check if the date_trans field has a date equal to today's date. Itβs good if the specified date is the client date (i.e. Uses js), since I am running a double check on the server.
I completely lost how to perform date matching in jQuery or just plain old javascript. If this helps, I use jquery datepicker
javascript jquery
JonoB Nov 21 '11 at 17:02 2011-11-21 17:02
source share