Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Servlet/JSP/JSF/JavaFX Script  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
reply to postflat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:求助:身份证年龄提取,并按固定格式显示 [Re:henbane]
GWoo





发贴: 24
于 2005-05-30 16:48 user profilesend a private message to userreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
substring()啦用,然后转换成int,并和通过系统当前时间获得的当前年份进行就可以得到拉
int born = (new Integer(idCardNum.substring(a,b))).intValue();
int age = java.util.Calendar.getInstance().YEAR - born




话题树型展开
人气 标题 作者 字数 发贴时间
5290 求助:身份证年龄提取,并按固定格式显示 henbane 20 2005-05-28 10:08
4635 Re:求助:身份证年龄提取,并按固定格式显示 GWoo 168 2005-05-30 16:48
4449 Re:求助:身份证年龄提取,并按固定格式显示 GWoo 237 2005-07-06 17:28
4438 Re:求助:身份证年龄提取,并按固定格式显示 GWoo 100 2005-07-06 17:32
4410 Re:求助:身份证年龄提取,并按固定格式显示 henbane 9 2005-07-06 21:40
4479 Re:求助:身份证年龄提取,并按固定格式显示 why 1417 2005-07-06 21:53
4777 Re:求助:身份证年龄提取,并按固定格式显示 henbane 17 2005-05-31 11:53
4703 Re:求助:身份证年龄提取,并按固定格式显示 mhlovers 20 2005-06-29 11:47
4482 Re:求助:身份证年龄提取,并按固定格式显示 henbane 28 2005-06-29 20:38
4419 Re:求助:身份证年龄提取,并按固定格式显示 why 108 2005-06-30 06:31
4454 Re:求助:身份证年龄提取,并按固定格式显示 henbane 138 2005-06-30 18:52
4521 Re:求助:身份证年龄提取,并按固定格式显示 GWoo 49 2005-07-01 11:20
4447 Re:求助:身份证年龄提取,并按固定格式显示 henbane 244 2005-07-01 20:13
4494 Re:求助:身份证年龄提取,并按固定格式显示 chengbd 32 2005-07-03 16:01
4483 Re:求助:身份证年龄提取,并按固定格式显示 chengbd 102 2005-07-03 16:12
4435 Re:求助:身份证年龄提取,并按固定格式显示 henbane 140 2005-07-04 14:09

reply to postflat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923