出生日期应为DD-MM-YYYY格式,而不是将来的任何日期 [英] Date of Birth should be in DD-MM-YYYY format and not any future date

查看:419
本文介绍了出生日期应为DD-MM-YYYY格式,而不是将来的任何日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



使用正则表达式验证DateOfBirth。

完全填写以下条件

出生日期应为DD- MM-YYYY格式(如12-12-2014等)和出生日期不应该是将来的日期。



任何人请帮帮我

Hi,
Validate for DateOfBirth using regular Expression.
Which full fill the below condition
Date of Birth should be in DD-MM-YYYY format (like 12-12-2014 etc) and date of birth should not be future date.

Any one please help me

推荐答案

当你昨天问这个问题时,我(和其他人)告诉你不要使用正则表达式,甚至解释了为什么不这样做,并向你展示了如何做到这一点。

出生日期应为DD-MM-YYYY格式,出生日期不应为 [ ^ ]



世界在一夜之间没有改变。

答案也没有改变......
When you asked this question yesterday, I (and others) told you "don't use a Regex" and even explained why not, and showed you how to do it.
Date of Birth should be in DD-MM-YYYY format and date of birth should not be[^]

The world has not changed overnight.
The answer has not changed either...


这篇关于出生日期应为DD-MM-YYYY格式,而不是将来的任何日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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