Results 1 to 2 of 2
  1. #1
    whisp0214 is offline Advanced Beginner
    Windows XP Access 2016
    Join Date
    May 2017
    Posts
    30

    Calculating Quarterly Dates In a Query

    I need to create a Payment Due date based off of a shipment date by quarter. Simply put, all Shipment dates between 1/1 and 3/31 need to calculate as 4/15. Dates between 4/1 and 6/30 need to be 7/15, 7/1 through 9/30 need to be 10/15 and 10/1 - 12/31 need to be 1/15. I have tried the Dateadd function with limited results. I can lock in the day so it is always 15, but i can not figure out how to get the months correct. Any suggestions?

  2. #2
    Join Date
    Apr 2017
    Posts
    1,792
    On fly:
    Code:
    =DateSerial(Year(YourDate),INT((MONTH(YourDate)-1)/3)*3+4,15)

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Calculating Workdays in between two dates
    By Radtastic10 in forum Programming
    Replies: 8
    Last Post: 08-15-2016, 03:09 PM
  2. Calculating dates
    By sivega in forum Queries
    Replies: 7
    Last Post: 06-14-2013, 08:18 PM
  3. Calculating Dates
    By TC0126 in forum Queries
    Replies: 1
    Last Post: 02-23-2010, 08:13 PM
  4. Calculating Dates
    By AJ0424 in forum Programming
    Replies: 1
    Last Post: 07-14-2009, 08:29 AM
  5. calculating due dates in access
    By trixxnixon in forum Forms
    Replies: 0
    Last Post: 09-28-2008, 12:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums