- Programming
- ASP Functions
- Response
- Dates/Times
|
ASP Weekday Functions
Sponsored Ads
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 |
|