在asp怎么获取时间的年月日
来源:百度知道 编辑:UC知道 时间:2024/06/23 04:07:33
像这样的语句行吗:(vb的)
shijian=(rs1("time").year)&"年"&(rs1("time").month)&"月"&(rs1("time").day)&"日"
shijian=(rs1("time").year)&"年"&(rs1("time").month)&"月"&(rs1("time").day)&"日"
在asp获取时间的年月日:
1、<%=datepart("yyyy",rs1("time"))%>年<%=datepart("m",rs1("time"))%>月<%=datepart("d",rs1("time"))%>日
2、year1=year(now())
month1=month(now())
day1=day(now())
Hour1=Hour(now())
Minute1=Minute(now())
Second1=Second(now())
<%=datepart("yyyy",rs1("time"))%>年<%=datepart("m",rs1("time"))%>月<%=datepart("d",rs1("time"))%>日
shijian=Year(rs("time"))&"年"&Month(rs("time"))&"月"&Day(rs("time"))&"日"
year(rs1("time"))
month(rs1("time"))
day(rs1("time"))
DateTime.Now