ASP Weekday Functions

web

 
  Sponsored Links


The ASP Weekday() function is used to return the numerical expression of day of the week from 1 (Sunday) to 7 (Saturday).

ASP Coding for Weekday Function

<%

Response.Write weekday(Date())

%>


OR

<%

=weekday(Date())

%>


Result

6

Weekday Function Results
weekday(Date()) 6
weekday(Now()) 6
weekday(#06/06/2010#) 1
weekday(#06/07/2010#) 2
weekday(#06/08/2010#) 3
weekday(#06/09/2010#) 4
weekday(#06/10/2010#) 5
weekday(#06/11/2010#) 6
weekday(#06/12/2010#) 7
   
 
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