社区
ASP
帖子详情
FormatDateTime 长日期问题
hnsongbiao
2008-07-29 01:37:41
FormatDateTime(Date, 1) 返回的是 2008年7月29日
FormatDateTime(Date, 2) 返回的是 2008-7-29
现在要返回2008-07-29
应该怎么写?
...全文
78
6
打赏
收藏
FormatDateTime 长日期问题
FormatDateTime(Date, 1) 返回的是 2008年7月29日 FormatDateTime(Date, 2) 返回的是 2008-7-29 现在要返回2008-07-29 应该怎么写?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
jhwcd
2008-07-31
打赏
举报
回复
[Quote=引用 4 楼 jacklinchen 的回复:]
function totwo(str)
'''转换为2位
totwo=str
if len(totwo)=1 then totwo="0"&cstr(totwo)
end function
Response.Write year(date)&"-"&totwo(month(date))&"-"&totwo(day(date))
[/Quote]
cimzzxiang
2008-07-31
打赏
举报
回复
自己建个函数,做个判断啦。。
jacklinchen
2008-07-31
打赏
举报
回复
function totwo(str)
'''转换为2位
totwo=str
if len(totwo)=1 then totwo="0"&cstr(totwo)
end function
Response.Write year(date)&"-"&totwo(month(date))&"-"&totwo(day(date))
wtogether
2008-07-31
打赏
举报
回复
http://blog.csdn.net/wtogether/archive/2008/05/22/2469027.aspx
Response.Write FormatTime(Now(), "Y-m-d")
Shellbkboy
2008-07-29
打赏
举报
回复
FormatDateTime(Date, 0)
yrwx001
2008-07-29
打赏
举报
回复
你應該到 Asp,or asp.net 版中去問吧
类似delphi中
format
datetime
()的函数
类似delphi中
format
datetime
()的函数,可以像delphi中一样使用
format
datetime
('yyyy-mm-dd hh:nn:ss.zzz',getdate())来返回当天的字符串型
日期
时间:'2012-09-12 18:42:20.210'
在Delphi中使用
日期
选择器用于数据库查询.rar
在Delphi中使用
日期
选择器用于数据库查询,用户搜索满足选定
日期
条件中的数据,使用
日期
选择器可很好的提高
日期
格式的准确性,避免数据库出错和查询不到数据的情况,本例的运行效果请参见测试截图。相关代码如下: ...
Asp
日期
格式化
问题
对于access数据库的
日期
时间类型字段存储的
日期
,直接从数据库中读出显示的效果是带时间的如,2009-06-13 18:00 ,如果只是希望显示
日期
应该怎么办呢? Vbscrip有一个函数
Format
DateTime
()。其说明如下: 返回...
Fastreport里显示年月日
Fastreport里显示年月日 Fastreport里显示年月日
ASP读取
日期
单
日期
自动补零函数代码
代码如下: public function fillzero(l1) if len(l1)=1 then fillzero=”0″&l1 else fillzero=l1 end if end ...显示结果:20110106 如何控制
长
日期
格式和短
日期
格式的显示: Short Date:
FORMAT
DATETIME
(DATE,vbShor
ASP
28,391
社区成员
357,060
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章