Join us on Facebook!
28
Feb

Day of Week

by admin 1595 views 0 Comments and 0 Rections

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.

<% date_value = date() %>
<%= date_value %>

<% dayofweek=weekday(date_value) %>
day number in week <%= dayofweek %>


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

More Posts in "Tutorials"

Comments

blog comments powered by Disqus

Feed Subscription

Get daily inboxed with latest news, reviews and tutorials. Signup now it's free :)



Planetmaks on Twitter

Follow PlanetMaks on Facebook

Recent Comments

Powered by Disqus

Tags

32Bit 64Bit 7 Admin Tool Admin Tools Admin-Tool Admin-Tools AdminTool Adobe Adware All-in-One Anti-Spyware Anti-Virus Apple Backup Tools Browser Browsers Changing Default Directory Codec Data Recovery Download Manager Downloads Drive Utilities Driver Drivers Firefox Flash Freeware Google Graphics Internet Tool Internet-Tool Messaging Microsoft Microsoft Tool Micsellonous Monitoring Multimedia Networking News NVidia Office Tool Office-Tool PC Suite Press Release Registry Samsung Security Shareware Software Softwares Tutorials Vista Windows Windows 7 Windows 8