02
2018
10

asp取出字段中的年月日小时分方法

<%=Year(rscao("gl_date"))&"-"&Right("0"&Month(rscao("gl_date")),2)&"-"&Right("0"&Day(rscao("gl_date")),2)&" "&Right("0"&Hour(rscao("gl_date")),2)&":"&Right("0"&Minute(rscao("gl_date")),2)&":"&Right("0"&Second(rscao("gl_date")),2)%>


----------------------------

网友提供:

 Year(Now())&"-"&Right("0"&Month(Now()),2)&"-"&Right("0"&Day(Now()),2)&" "&Right("0"&Hour(Now()),2)&":"&Right("0"&Minute(Now()),2)&":"&Right("0"&Second(Now()),2)


« 上一篇下一篇 »