Short Date Format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using <%=(Date)%> to display a date in an imput box. It works fine but it
displays like this 10/10/2005 I would like short version 10/10/05.

Thanks.

Sorry for this dumb question.
 
You will have to break the date up into its parts and reconstruct it.

<%
dd = Day(Date())
mm = Month(Date())
yy = Right(Year(Date()), 2)

Response.Write mm & "/" & dd& "/" & yy
%>

Bob Lehmann
 
Back
Top