I have a form input with an id of date_trans . The format for that date input (which is validated server side) can be any of:
- dd/mm/yyyy
- dd-mm-yyyy
- yyyy-mm-dd
- yyyy/mm/dd
然而,在张贴表格之前,我要检查“过渡领域”的日期是否与今天的日期相同。 如果所收日期是客户日期(即使用js),因为我也对服务器进行了双重检查。
I m totally lost on how to do the date comparrison in jQuery or just plain old javascript. If it helps, I am using the jquery datepicker