RSS订阅·收藏本站·网站地图·网页代码测试·在线小游戏
行业资讯IT动态手机数码电子商务搜索引擎网络游戏
行业评论门户动态收购融资站长资讯通信要闻传媒
编程语言PHPASPc++Html/CssMySqlasp.netVisual Basic
电脑技术入门实用技术办公软件网络安全QQ专题IT必备书
站长教学频道
网站模板下载

您当前的位置:学院首页>编程语言>ASP入门>浏览文章

ASP的日期转换星座函数

时间:2010-01-25 来源:ITxyz整理 编辑:itxyz.net 点击: 次 字体:[ ] 关注站长微博

'日期转换星座函数,参数是日期型
function astro(birth)
astro=""
if birth="" or not isdate(birth) Then exit function
birthmonth=month(birth) : if birthmonth<10 then birthmonth="0" & birthmonth
birthday=day(birth) : if birthday<10 then birthday="0" & birthday
birth=trim(birthmonth & birthday) '重整月日,0903型

@ itxyz.net

rAstro=split("水瓶座*0120*0219#双鱼座*0220*0320#白羊座*0321*0420#金牛座*0421*0521#双子座*0522*0621#巨蟹座*0622*0722#狮子座*0723*0823#处女座*0824*0923#天秤座*0924*1023#天蝎座*1024*1122#射手座*1123*1222#摩蝎座*1222*0119#","#")

@ itxyz.net

astro="摩蝎座" '这个是跨年的,不好对比,先默认
for i_ls=0 to ubound(rAstro)-2
 rls2=split(rAstro(i_ls) & "*","*")
 if birth>=rls2(1) and birth<=rls2(2) then
  astro=rls2(0)
  exit for
 end if
next
end function

@ itxyz.net

@ itxyz.net

    顶一下
    (0)
    0%
    踩一下
    (0)
    0%
    Tags:函数 ASP 日期转换星座 
    责任编辑:itxyz.net
  • 相关文章
    发表评论
    请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
    评价:
    验证码: 点击我更换图片

    搜索教程

    赞助商链接

    推荐内容

    推荐图集

    热点内容