编程论坛
注册
登录
编程论坛
→
ASP技术论坛
access+asp日期格式问题
ngm917
发布于 2008-03-05 15:39, 1399 次点击
发布新闻时,access中是日期/时间字段,怎样把2008-03-05这样的日期显示成2008年03月05日
2 回复
#2
madpbpl
2008-03-05 16:03
<%
dim mydate
mydate="2008-03-05"
%>
<%=formatdatetime(mydate,1)%>
#3
guyer
2008-03-05 16:03
可以在输出的时候转换下
可以在输出的时候转换下
response.write (year(ors("time"))&"年"&month(ors("time"))&"月"&day(ors("time"))&"日")
1