CodeAve.com CodeAve.com - ASP - Miscellaneous
ASP
·Read/Write
·Script Writers
·Database Display
·Response Objects
·Server Variables
·Random Events
·Articles
·Miscellaneous
·Contents
·What's New?
JavaScript
CSS
HTML
Maps
Links
Mail List
Search
Sitemap


 


Day of Week
Want to display the current day of the week in your .asp? This code will grab today’s value and utilizing select case display the day of the week.
View the Output
Text View
Print View
Mail this Link
Download the Code

<% 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 %>

 

 

 



ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
Server Variables | Response Objects | Random Events | Miscellaneous
HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
JavaScript: Document Info | Forms | Images | Navigation | Script Writers
CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2017 CodeAve.com
    All Rights Reserved

  • Kids jordan 6 rings
  • Jordan retro 10
  • Jordan retro 3