Apr 30, 2001 #1 wassup Technical User Joined Oct 3, 2000 Messages 52 Location GB Does anyone know how to get the day of the week in asp page. Either the text day (Monday,Tuesday) or the number of the day in the week Thanks
Does anyone know how to get the day of the week in asp page. Either the text day (Monday,Tuesday) or the number of the day in the week Thanks
Apr 30, 2001 Thread starter #2 wassup Technical User Joined Oct 3, 2000 Messages 52 Location GB <% date_value = date() %> <%= date_value %><br> <% dayofweek=weekday(date_value) %> day number in week <%= dayofweek %> <br> <% select case dayofweek %> <% case "1" %> Sunday <% case "2" %> Monday <% case "3" %> Tuesday <% case "4" %> Wednesday <% case "5" %> Thursday <% case "6" %> Friday <% case "7" %> Saturday <% end select %> Upvote 0 Downvote
<% date_value = date() %> <%= date_value %><br> <% dayofweek=weekday(date_value) %> day number in week <%= dayofweek %> <br> <% select case dayofweek %> <% case "1" %> Sunday <% case "2" %> Monday <% case "3" %> Tuesday <% case "4" %> Wednesday <% case "5" %> Thursday <% case "6" %> Friday <% case "7" %> Saturday <% end select %>
Apr 30, 2001 #3 link9 Programmer Joined Nov 28, 2000 Messages 3,387 Location US also, go to http://www.devguru.com, look at their nice vbscript quick reference under the dateDiff() function -- Upvote 0 Downvote
also, go to http://www.devguru.com, look at their nice vbscript quick reference under the dateDiff() function --
Apr 30, 2001 #4 Biff Programmer Joined Mar 26, 2001 Messages 7 Location GB Use WeekDayName() function Upvote 0 Downvote