Search DaTutorials:  
HOME
ASP Tutorials
Introduction
Reference
   Building ASP Pages
   Built-in Objects
Tutorials

Get the name of a day

Description:


How to Get the name of a day using ASP and VB Script.

Code:

<html> <body> <%
Response.Write("The first day of the week is: " & WeekDayName(1))
Response.Write("<br>The second day of the week is: " & WeekDayName(2))
Response.Write("<br>The third day of the week is: " & WeekDayName(3))
Response.Write("<br>The fourth day of the week is: " & WeekDayName(4))
Response.Write("<br>The fifth day of the week is: " & WeekDayName(5))
Response.Write("<br>The sixth day of the week is: " & WeekDayName(6))
Response.Write("<br>The seventh day of the week is: " & WeekDayName(7))
%> </body> </html>

See working example:


Keywords:

ASP: Response.Write

VBScript: WeekDayName


     Advertising | Web Advertising | Advertising | Internet Advertising | Online Advertising
Home    Link To Us    Ad With Us    Contact Us    Tell A Friend    Affiliates    Blog    Stock Photos