It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center
                            
                        
                    
                
                7年前关闭。
            
        

我需要验证输入到表单中的数据是否在1940年1月1日之前。我分别拥有用户的日,月和年值,但是我不知道如何使用智能工具将它们全部汇总并检查是否在该特定日期之前。

最佳答案

我想你可以创建一个Date对象

new Date(year, month, day [, hour, minute, second, millisecond]);


而不是1940年1月1日的另一个日期,您可以将它们进行比较:date1
08-03 19:43