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
- 日期格式
- yyyy/mm/dd
但是,在发布表单之前,我想判断date_trans字段的日期是否等于今天的日期.如果使用的日期是客户机的日期(即使用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