asp取时间
作者:wang 日期:2009-10-12
nowtime=now()
shijian=cstr(year(nowtime))+right("0"+cstr(month(nowtime)),2)+right("0"+cstr(day(nowtime)),2)+right("0"+cstr(hour(nowtime)),2)+right("0"+cstr(minute(nowtime)),2)
<%=year(now)%>年<%=month(now)%>月<%=day(now)%>日
response.write(month("2005-12-31 10:44:12" )&"月"&day("2005-12-31 10:44:12 ")&"日")
shijian=cstr(year(nowtime))+right("0"+cstr(month(nowtime)),2)+right("0"+cstr(day(nowtime)),2)+right("0"+cstr(hour(nowtime)),2)+right("0"+cstr(minute(nowtime)),2)
<%=year(now)%>年<%=month(now)%>月<%=day(now)%>日
response.write(month("2005-12-31 10:44:12" )&"月"&day("2005-12-31 10:44:12 ")&"日")
评论: 0 | 引用: 0 | 查看次数: 3074
发表评论