我试图验证、获取和比较2个日期。
这些日期来自2个文本投入,现作为以下实例编排:17/01/2011 00:00<>/code>。
我如何用日期标语将这种描述改为日期?
我试图根据这些条件证明:
- Date must be in the correct format (
17/01/2011 00:00
) - Date must be in the future (How do I do that considering JS runs on Local and date can be set incorrectly on the user s machine?
- First date must be before second date. (it s a from_date -> to_date input).
请你协助?
感谢