Mondays


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Mondays

  1. #1
    Join Date
    Oct 2005
    Posts
    133

    Mondays

    hi ,

    i am trying to get my app to list all the monday dates between certain date criteria

    and i am not having any luck

    basically this section of the app needs to list all the monday's dates between may 2006 to may 2007 but it does not seem to do anything it just keeps adding 7 to the date but does not change month..

    can anyone show me how to stat this off in a way that works cause mine does not

    thanks in advance
    Rob

  2. #2
    Join Date
    Aug 2005
    Posts
    85
    Rob, try this

    Code:
     Dim MonDate As Date, A As Long
        MonDate = "01/05/2006"
        For A = 0 To 51
            MonDate = DateAdd("ww", 1, MonDate)
            Debug.Print MonDate
        Next
    Steve.

  3. #3
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Didn't I answer this question for you, like, four months ago?
    http://forums.devx.com/showthread.php?t=150930
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center