ASP Date, Time, and Now Functions

web

 
  Sponsored Links


The ASP Date(), Time(), and Now() functions are used to return the date or time in various formats.

ASP Coding for Date Function

<%

Response.Write Date()

%>


OR

<%

=Date()

%>


Result

7/30/2010

Date, Time, and Now Functions Results
Date() 7/30/2010
Time() 12:44:11 PM
Now() 7/30/2010 12:44:11 PM
formatDateTime(Date,0) 7/30/2010
formatDateTime(Date,1) Friday, July 30, 2010
formatDateTime(Date,2) 7/30/2010
formatDateTime(Time,0) 12:44:11 PM
formatDateTime(Time,2) 12/30/1899
formatDateTime(Time,3) 12:44:11 PM
formatDateTime(Now,0) 7/30/2010 12:44:11 PM
formatDateTime(Now,1) Friday, July 30, 2010
formatDateTime(Now,2) 7/30/2010
formatDateTime(Now,3) 12:44:11 PM
formatDateTime(Now,4) 12:44
   
 
web

ReaLife WebDesigns / 310.371.3275
We appreciate having the opportunity to contribute to the success of your business!

© 1999-2010 ReaLife WebDesigns. All rights reserved. site map | terms of use