Thread: Nested if in VB
View Single Post
  #2 (permalink)  
Old October 2nd, 2009, 09:21 AM
om_prakash om_prakash is offline
Friend of Wrox
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts

If you want to write some code based on current month, then you can do something like:

select case month(Date) 
case 10
 'Write code specific to October month
 Response.Write "October"
case 11
 'Write code specific to November month
 Response.Write "November"
case 12
 'Write code specific to December month
 Response.Write "December"
end select
Om Prakash Pant
Click the "Thanks" button if this post helped you.
Reply With Quote