Apr 30, 2001 #1 wassup Technical User Oct 3, 2000 52 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 Oct 3, 2000 52 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 Nov 28, 2000 3,387 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 --