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.
Printable View
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.
Nevermind, I figured it out. Date.Today.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
IF you have solved it by yourself, then mark it as RESOLVED. :)