Alpha DevCon 2018
Results 1 to 3 of 3

Thread: "Number of Weeks In A Month" Function?

  1. #1
    Member nigeldude's Avatar
    Real Name
    Nigel Freeman
    Join Date
    Jul 2006
    Location
    Belize City, Belize
    Posts
    288

    Default "Number of Weeks In A Month" Function?

    Is there any function to calculate the number of weeks in a month?

    eg. The number of Sundays or Mondays in a given month, 4 or 5.

  2. #2
    Member nigeldude's Avatar
    Real Name
    Nigel Freeman
    Join Date
    Jul 2006
    Location
    Belize City, Belize
    Posts
    288

    Default How To Calculate Number of Weeks in a Month

    Does anyone have any pointers on how to calculate how many weeks are in a month? Sundays specifically.

  3. #3
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    24,833

    Default Re: How To Calculate Number of Weeks in a Month

    You asked the same question here.

    Shouldn't be hard to design a function to answer the need. What input do you want to drive the function? Specify a date and return the number of Sundays in that month/year?

    See this thread for a generic function.
    Last edited by Stan Mathews; 04-14-2011 at 08:25 AM.

Similar Threads

  1. "Table not found" in a custom function
    By Mike Becker in forum Alpha Five Version 4
    Replies: 9
    Last Post: 11-27-2009, 01:04 PM
  2. Weird "Function not recognized" error
    By csda1 in forum Alpha Five Version 7
    Replies: 1
    Last Post: 06-29-2006, 09:28 PM
  3. User definied function, "not found"
    By abackstrom in forum Alpha Five Version 6
    Replies: 9
    Last Post: 10-05-2005, 03:47 PM
  4. Posting "Replace" Function for Character
    By Raheel Ahmed in forum Alpha Five Version 5
    Replies: 1
    Last Post: 08-01-2004, 04:22 AM
  5. chr number for the "tab" key
    By eeetee in forum Alpha Five Version 5
    Replies: 4
    Last Post: 12-15-2003, 03:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •