If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Date Retrieval

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-15-03, 09:28
Bigced_21 Bigced_21 is offline
Registered User
 
Join Date: Dec 2002
Location: KY
Posts: 54
Red face Date Retrieval

is there a way i can retrieve the last date of each month. For example, I'm designing a license that I want to expire at the end of the birth month for an individual?


Any suggestions, Please help?
Reply With Quote
  #2 (permalink)  
Old 05-15-03, 15:14
Memnoch1207 Memnoch1207 is offline
Registered User
 
Join Date: Jan 2003
Location: Midwest
Posts: 138
you can use a select case statement
Code:
birthmonth = 12 (Dec)

Select Case birthmonth
     Case 1,3,5,7,8,10,12
          days = 31
     Case 4,6,9,11
          days = 30
     Case 2
          days = 28
End Select
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On