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


 


Which Day of The Week
Need to display the day of the week of any date in your .asp? This example script will take the value of July 4, 1776 value and utilizing select case display the day of the week the Declaration of Independence was signed.
View the Output
Text View
Print View
Mail this Link
Download the Code

<%
mm=7
dd=4
yy=1776
%>


<% temp_date=dateSerial(yy,mm,dd) %>

<%= temp_date %> falls on a 

<% dayofweek = weekday(temp_date) %>

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