Sign-up....

日期转换问题,预得到'2005-04-06 11:15:52.000 '格式的日期??

如题;

我再数据库中查看日期字段的值为:2005-04-06 11:15:52.000,可是再页面中输出就成了:

2005-4-6 11:15:52格式,我想按照原来的各式输入怎么做???

[98 byte] By [msdn] at [2007-8-14 9:08:21]
# 1 Re: 日期转换问题,预得到'2005-04-06 11:15:52.000 '格式的日期??

转换成字符输出试试

loye at 2005-5-9 11:16:05 >
# 2 Re: 日期转换问题,预得到'2005-04-06 11:15:52.000 '格式的日期??

dim strTime

strTime=Cstr(rs(time))

leo963258 at 2005-5-9 11:16:42 >
# 3 Re: 日期转换问题,预得到'2005-04-06 11:15:52.000 '格式的日期??

dim strTime

strTime=Cstr(rs("time"))

raas at 2005-5-9 11:19:59 >
# 4 Re: 日期转换问题,预得到'2005-04-06 11:15:52.000 '格式的日期??

现在控制面板-区域设置-日期中将短日期格式改成yyyy-MM-dd

hushuang7094 at 2005-5-9 11:44:29 >

Web

All Classified