首页 > 网站 > 建站经验 > 正文

改变下载列表日期显示格式“****年*月*日*时*分*秒”为“****.*.*”

2024-08-30 19:06:06
字体:
来源:转载
供稿:网友
解决方法:
在文件Admin/Refresh/Function.asp中
(1)把
TempletContent = Replace(TempletContent,"{DownLoad_AddTime}",DownLoadRecordObj("AddTime"))
替换成
DateStr=DownLoadRecordObj("AddTime")
DateString = Year(DateStr)&"年"&Month(DateStr)&"月"&Day(DateStr)&"日"
TempletContent = Replace(TempletContent,"{DownLoad_AddTime}",DateString)
(2)把

TempletContent = Replace(TempletContent,"{DownLoad_EditTime}",DownLoadRecordObj("EditTime"))
替换成
dim DateStr,DateString
DateStr=DownLoadRecordObj("AddTime")
DateString = Year(DateStr)&"年"&Month(DateStr)&"月"&Day(DateStr)&"日"
TempletContent = Replace(TempletContent,"{DownLoad_EditTime}",DateString)

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表