Results 1 to 4 of 4

Thread: [RESOLVED]Get the day #

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    Resolved [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.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    Re: Get the day #

    Nevermind, I figured it out. Date.Today.Day

  3. #3
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    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:
    1. If Date.Now.Day = Date.DaysInMonth(Date.Now.Year, Date.Now.Month) Then
    2.       'Last day
    3. End If

  4. #4
    Addicted Member tsungik's Avatar
    Join Date
    Aug 2004
    Location
    Philippines
    Posts
    194

    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
  •  



Click Here to Expand Forum to Full Width