在asp怎么获取时间的年月日

2024-12-28 17:19:31
推荐回答(5个)
回答1:

    在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())

回答2:

DateTime.Now

回答3:

year(rs1("time"))

month(rs1("time"))

day(rs1("time"))

回答4:

shijian=Year(rs("time"))&"年"&Month(rs("time"))&"月"&Day(rs("time"))&"日"

回答5:

<%=datepart("yyyy",rs1("time"))%>年<%=datepart("m",rs1("time"))%>月<%=datepart("d",rs1("time"))%>日