CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2003
    Location
    St Paul, MN - USA
    Posts
    48

    Formula Days Left in Month

    What is the best way to get the days left in the month excluding the weekend from todays date?


    Also to get the count of the days in the month excluding the weekends?

    For example: If today is Mar.15

    WeekDays in the month: 22
    WeekDays left: 12


    Thanks.

  2. #2
    Join Date
    May 2006
    Posts
    324

    Re: Formula Days Left in Month

    See the help on DateSerial re. getting the last day in the month. See the help on DataDiff for an example of days between two dates, and also how to exclude weekends.

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

Featured