Applies to the management of archives in OA projects.1. Calculate the birth date, age, and gender (18 digits) based on the ID card number)
// Obtain the input ID card number var uusercard =$ ("# uusercard "). val (); // get the date of birth // uusercard. substring (6, 10) + "-" + uusercard. substring (10, 12) + "-" +
1. Calculate the birth date, age, and gender (18 digits) based on the ID card number)
Copy codeThe Code is as follows: // obtain the ID card number
Var UUserCard = $ ("# UUserCard"). val ();
// Obtain the Date of birth
// UUserCard. substring (6, 10) + "-" + UUserCard. substring (10, 12) + "-" + UUserCard. substring (1
In order to facilitate users to register their public accounts, the micro-credit official announced today that the new micro-credit public platform registration process has been launched to simplify the operation. In addition, an ID card can register the number of public accounts, from the original 2 to 5.
In the new registration process, the main types of public accounts are divided into government
In software products often need to make software registration code, and according to the hardware product number to make the registration code is a good choice. The number of the first hard drive can be obtained using the Read registry. Main program code.
private void Button1_Click (object sender, EventArgs e){ TextBox1.Text = Registry.getvalue ("HKEY_LOCAL_MACHINE\\HARDWARE\\DEVICEMAP\\SCSI\\SCSI Port
Assume that column A is a social security number (15-bit or 18-bit) since A2.1, the Social Security number is changed to 18 bits, the input array formula:=if (LEN (A2) =15,replace (a2,7,,19) mid ("10x98765432", MOD (SUM (For MID (REPLACE (a2,7,,19), ROW (INDIRECT ("1:17"), 1) * 2^ (18-row (INDIRECT ("1:17"))), one) +1,1), A2)Note: Array formula Input Method: Do not press ENTER after entering the formula, bu
ID card number encoding principle: Number Structure
A citizenship number is a combination of features and consists of a 17-digit ontology code and a verification code. The six-digit address code, eight-digit birth date code, three-digit sequence code, and one-digit verification code are arranged from left to right.
Ver
Zhang Jie, born December 20, 1982 in Chengdu, Sichuan, graduated from Sichuan Normal University, mainland China pop singers. 2004 to participate in the first "I-Type I show" won the championship debut, 2005 launched the first album "The First" and by virtue of the "Big Dipper of Love" won the global Chinese List "Annual Media Recommendation Award" and other awards
Zhang Jie Nanjing Station Concert Live Address
1, open a live app, in the first click on the top left corner of the search bu
Code:- (void) viewdidload {[Super viewdidload]; //additional setup after loading the view, typically from a nib.NSString*birthday=[self Birthdaystrfromidentitycard:@"134825194401014241"]; NSLog (@"--birthday-%@", BirthDay);}#pragma-mark-functions//Pass ID to return birthday string-(NSString *) Birthdaystrfromidentitycard: (NSString *) numberstr{nsmutablestring*result = [nsmutablestring stringwithcapacity:0]; NSString*year =Nil; NSString*month =Nil; BO
Applies to the management of archives in OA projects.
1. Calculate the birth date, age, and gender (18 digits) based on the ID card number)CopyCodeThe Code is as follows: // obtain the ID card numberVaR uusercard = $ ("# uusercard"). Val ();// Obtain the Date of birth// Uusercard. substring (6, 10) + "-" + uusercard. substring (10, 12) + "-" + uusercard. subs
This article mainly introduces PHP with asterisks to hide some of the user name, ID, IP, mobile phone number and other examples, the need for friends can refer to the following A, imitation Taobao comments purchase records hidden part of the user name, the following code is available. nbsp; nbsp; Code as follows: function Cut_str ($string, $sublen, $start = 0, $code = ' UTF-8 ') {nbsp; nbsp; if ($code = =
Regular expressions (regular expression) are an object that describes the character pattern. Use regular expressions to perform powerful pattern matching and text retrieval and replacement functions.ID Card Regular://身份证正则表达式(15位)isIDCard1=/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$/;//身份证正则表达式(18位)isIDCard2=/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{4}$/;身份证正则合并:(^\d{15}$)|(^\d{17}([0-9]|X)$)The latest mobile phone number
/// ///
/// Public static class databasegenerator
{
/// ///
/// Private Static int64 seed = int64.parse (datetime. utcnow. Subtract (New datetime (1970, 1, 1). totalmilliseconds. tostring ("0 "));
/// ////// /// Public static int64 getprimarykey (){Return interlocked. increment (ref seed );}} Recently, I want to use the serial number function. Most of the existing online id generation (serial
Ask to avoid the problem that the xls file phone number exported by phpexcel and the ID card are displayed in scientific notation! Phpexcel is used for export in recent projects, which is relatively good, but there are several headaches, that is, when exporting data columns, data of the type 013434342333, 053482371284, and 42221312312312312312213 is automatically displayed in scientific notation. for detail
This article mainly introduces the jquery plug-in validation authentication ID number, passport, telephone number, email very simple and practical, the need for small partners can refer to.
First recommend a bootstrap jquery validation plugin: http://thrilleratplay.github.io/jquery-validation-bootstrap-tooltip/
JQuery Validation Add validation rules
Validata.h
C # replacement of special characters in the middle of privacy information (bank account, ID card number, name (*),
Recently, a function module about banks needs to replace the middle part of the bank account with *, so I wrote the following code:
///
The call and effect are as follows:
ReplaceWithSpecialChar ("Ke xiaodan", 1, 0, '*') --> Result: Ke * Stay
ReplaceWithSpecialChar ("622212345678485") -->
Obtain the ID card number of the UUserCard province The code is as follows:Copy code Function discriCard (UUserCard ){UUserCard. substring (6, 10) + "-" + UUserCard. substring (10, 12) + "-" + UUserCard. substring (12, 14); // Obtain the date of birthObtain genderIf (parseInt (UUserCard. substr (16, 1) % 2 = 1) {// if it is male, run the code...Alert ("male ");} Else {// if
Because the response speed is extremely fast, it is certainly not the correctness of online verification. That is to say, the second-generation ID card has other self-verification rules besides the rules that everyone knows about birthday and gender. So I opened the page source code and found that this section of js was not compressed, so the rules are quite understandable.I am here to give you some tips. I don't know if it's Mars.The following code i
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.