<%
Dim a,b,c,d
Dim i
a="2004-2-2"
if isdate(a) then
a=cdate(a)
d=cstr(year(a))
if month(a) < 10 then
b="0" & cstr(month(a))
else
b=cstr(month(a))
end if
if day(a) < 10 then
c="0" & cstr(day(a))
else
c=cstr(day(a))
end if
response.write d & "-" & b & "-" & c
end if
%>
Dim a,b,c,d
Dim i
a="2004-2-2"
if isdate(a) then
a=cdate(a)
d=cstr(year(a))
if month(a) < 10 then
b="0" & cstr(month(a))
else
b=cstr(month(a))
end if
if day(a) < 10 then
c="0" & cstr(day(a))
else
c=cstr(day(a))
end if
response.write d & "-" & b & "-" & c
end if
%>
解决方案 »
- JS获取table中的td Object问题
- new ActiveXObject建立后方法咋调用
- 一小问题,解决立马结贴
- 使用Extjs的ToolTip控件~需要触发两次才会弹出信息框!!! 急~!!!
- ExtJs: formPanel表单数据加载问题 请高手指点
- 请教:火狐浏览器如何读事件源的类型名称?
- 找用户名和密码,谢谢!!
- 谁能提供一下RealPlay控件的接口(包含属性和方法)
- 如何实现图片marquee式滚动放映,但头尾要连接!
- 帮忙解释一下!!!!!!
- 各位帮帮忙,谁有200409,2004-09-03 11:20:35 日历控件,谢谢!
- 怎么写javascript才能做到下面的过程
date1=day(times)
if (date1<=9) then
date1="0"&date1
end if
month1=month(times)
if (month1<=9) then
month1="0"&month1
end if
year1=year(times)
timelast=year1&"-"&month1&"-"&date1
var re = /(\/|-)(\d)\b/g;
alert("2004-2-2".replace(re,"-0$2"));
alert("2004/2/2".replace(re,"-0$2"));
</script>