Short Date Format

R

rml

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.
 
B

Bob Lehmann

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
 
Top