根據身份證號生成出生日期

2021-08-26 19:58:49 字數 752 閱讀 4690

/**

* @修改者:lics

* @說明:根據身份證號生成出生日期

*/package nc.ui.ps.pub;

import nc.vo.pub.busines***ception;

import nc.vo.pub.lang.ufdate;

import nc.vo.uap.busibean.exception.busibeanexception;

/** * @修改者:lics

* @說明:根據身份證號生成出生日期

*/public class gainbirthday

/***

* @方法說明:根據身份證號生成出生日期

* @修改者:lics

* @param cardid 15位或18位的身份證號

* @return 出生日期

* @throws busines***ception **/

public static ufdate getbirthday(string cardid) throws busines***ceptionelse if(cardid.trim().length()==18)

}if(tempstr!=null&&tempstr.tostring().trim().length()>0)catch(exception e)

}return returndate;

}}

JS中根據身份證號獲取年齡 出生日期

獲取年齡 function getage 身份證號 if len 15 15位身份證號 時間字串裡,必須是 隔開 var birthdate new date strbirthday var nowdatetime new date var age nowdatetime.getfullyear b...

根據身份證號提取地域,性別,年齡,出生日期

select case left cardid,2 when 11 then 北京市 when 12 then 天津市 when 13 then 河北省 when 14 then 山西省 when 15 then 內蒙古自治區 when 21 then 遼寧省 when 22 then 吉林省 wh...

Excel中從身份證號提取出生日期

假設a2中是身份證號資訊,使用mid函式與subsitute函式實現0000.00.00格式的日期自動提取 公式如下 a1 substitute text mid a2,7,8 0000 00 00 函式語法 substitute text,old text,new text,instance nu...