<%
  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
  
%>