|
-
Mar 21st, 2006, 12:37 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED]Get the day #
Im trying to get the current day in the month, like: 20 if its 3/20/2006.
Im trying to make a if statement to check the date if its the 15th or the 30th to see if running my update program is needed.
Last edited by tylerm; Mar 21st, 2006 at 01:24 AM.
-
Mar 21st, 2006, 12:38 AM
#2
Thread Starter
Hyperactive Member
Re: Get the day #
Nevermind, I figured it out. Date.Today.Day
-
Mar 21st, 2006, 12:47 AM
#3
Re: Get the day #
About the day 30, some months have less than 30 days, you could do something like this to check if it's the last day of the month..
VB Code:
If Date.Now.Day = Date.DaysInMonth(Date.Now.Year, Date.Now.Month) Then
'Last day
End If
-
Mar 21st, 2006, 01:16 AM
#4
Addicted Member
Re: Get the day #
IF you have solved it by yourself, then mark it as RESOLVED.
Begin with the end in mind.
My Profile
while( !( succeed = try() ) );
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|