Use php to extract the birthday from the ID card, and use php to extract the birthday card. Use php to extract the birthday from the ID card, and use php to extract the birthday from th
Use php to extract the birthday from the ID card, and use php to extract the birthday card.
Use php to extract a birthday from your ID card, including 15-digit and 18-digit ID cards.
Function getIDCardInfo ($ IDCard, $ format = 1)
I have been in touch with the registration system and the authentication system to know the information in the ID card number. For 18-digit ID cards, the first six represent the location of your household registration, the seventh to 14th digits represent the year of birth, and the fifth to 15th digits represent your gender (even numbers are female and odd numbers are male). According to this information, after I enter the student's ID
[Code Note] upload an ID card number to return a birthday string and an ID card number string
Code:
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. NSString * birthDay = [self birthdayStrFromIdentityCard: @ "134825194401014241"]; NSLog (@ "--
Use php to get a series of clues (constellation, Zodiac, birthday, etc.) from the ID card number, php ID card number
The first example of this article is to share with you that PHP automatically obtains the corresponding constellation functions based on the ID card number for your reference. The specific content is as
? Pid.substring (0,17): Pid.slice (0,6) + "+pid.slice" (6,16);
if (!/^\d+$/.test (Ai)) return "ID card except the last one, must be a number!" ";
var yyyy=ai.slice (6,10), Mm=ai.slice (10,12)-1, Dd=ai.slice (12,14);
var d=new date (YYYY,MM,DD), now=new date ();
var year=d.getfullyear (), Mon=d.getmonth (), day=d.getdate ();
if (year!=yyyy | | mon!=mm | | day!=dd | | d>now | | year
for (Var i=0,ret=0;iAi+=arrverifycode[ret%=11];
return
Provides various official and user-released code examples and code reference. You are welcome to exchange and learn how to place orders and enter your ID card when developing the travel website program's second generation travel CMS, we just need to use the automatic birthday extraction function. Share it now.
Compatible with 15-digit and 18-digit ID cards
In the development of tourism website program, the
This article describes how to use php to obtain a series of clues from the ID card number, such as Constellation, Zodiac, and birthday. PHP extracts the birthday from the ID card number and verifies whether it is an adult function, interested friends can refer to the first example of this article to share with you the
One, only 18-digit ID numberSuch as:
ID number
330682199302264000
41120019890823729X
231081199002256839
131101198203154666
360300198205270958
11010519491231002X
Calculation steps:Step1: Extract Birthday string: =mid (a2,7,8), birthdays start from the seventh place, a total of eight. Step2: This step can be divided into two w
This article uses php Technology to extract the birthday date in the ID card number to determine whether it is a function of a minor. The following code is a function used to extract the birthday date in the ID card number and determine whether the ID card number is an adult
This article uses php technology to extract the birthday date in the ID card number to determine whether it is a function of a minor. The following code is a function used to extract the birthday date in the ID card number and determine whether the ID card number is an adult
WPS demonstrates how to make a birthday greeting card
1, start WPS Demo, open the first page, in the search bar input birthday, search some of the templates provided by netizens.
2, select a, download, and then click on the menu bar---insert--background music.
3, in the pop-up dialog box will be Happy Birthda
Use t-SQL to extract the birthday from the ID card number. The following is an example of converting the 15-digit ID card number for your reference only. Create function getDateFromID (
@ Id char (15)
)
Returns datetime
As
Begin
Declare @ birthPart char (6 );
Set @ birthPart = substring (@ id, 7, 6 );
Declare @ year int;
Set @ year = cast (left (@ birthPart, 2) a
Php extracts the birthday date from the ID card number and verifies whether it is a minor.
Php extracts the birthday date from the ID card number and determines whether it is an adult. You can determine the ID card of 15 and 18 digits at the same time. it is very easy to use
a Birthday greeting card written in C language
K written in 2010.10.23 name color Happy compilation environment VC6.0
#include From: http://www.oschina.net/code/snippet_100492_14759
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.