比较当前日期与出生日期和加入日期之间的日期 [英] Comparing date between current date with Date of birth with Date of joining

查看:79
本文介绍了比较当前日期与出生日期和加入日期之间的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在项目上工作,我需要输入出生日期和加入日期(应该超过21年)从当前日期开始,但出生日期和加入日期不应相同。



理想情况下,出生日期和加入日期应至少为5年。



我需要做第一个选项:



Javascript在出生日期填写和加入日期(关注焦点)

C#asp.net点击活动。



项目是关于讲座的报名表



谢谢

Hi All,

Im working on project where i need to enter "Date of Birth" and "Date of Joining"(should be more than 21 years) from current date but Date of Birth and Date of Joining should not be same.

Ideally Date of Birth and Date of Joining should have at least 5 years.

this i need to do as 1st option:

Javascript on Date of Birth filling and Date of Joining filling(on focus off)
C# asp.net on click event.

Project is about Registration form for lectures

Thanks

推荐答案

试试这里:与Age合作:它与TimeSpan不同! [ ^ ]


这篇关于比较当前日期与出生日期和加入日期之间的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆