如何以asp形式匹配ID号和出生日期 [英] How to match ID Number and Date of Birth in a asp form

查看:88
本文介绍了如何以asp形式匹配ID号和出生日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带2个文本框的asp表单,要求用户输入ID号和出生日期&我使用日历输入日期.我需要一个代码来匹配ID号和出生日期;例如,用户输入此ID号:920527 1234 56 7,它必须允许用户在日历DOB中选择该日期:1992/05/27. <无class生日.

Hi i have a asp form that has 2 textbox that require a user to enter ID Number and Date of Birth & i use a calendar to enter date. i need a code to match ID Number and Date fo Birth; Example the user enter this ID No:920527 1234 56 7 and it must allow a user to pick this date in a calendar DOB: 1992/05/27. NOT ANY Date Of Birth.

推荐答案

将DOB格式设置为ID号中与出生日期相同的格式.

剥离ID号的前6个didgits,然后将其与格式化的DOB进行比较.

这是非常基础的东西,听起来很像是一个作业问题.因此,我不会添加代码示例.
Take the DOB format it to the same format as the date of birth in the ID number.

Strip the first 6 didgits of the ID numbers and compare it with the formated DOB.

This is realy basic stuff and sounds a lot like a homework question. Therefore I will not be adding code samples.


这篇关于如何以asp形式匹配ID号和出生日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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