Brian Dunning's FileMaker Custom Functions

QBDateRange ( DateChoice ; FirstDayWeek ; FiscalMonth )

Get Quickbook Pro types of Date Ranges.

  Average rating: 3.8 (38 votes) Log in to vote

Don Wieland   Don Wieland - Show more from this author
DW Data Concepts
http://www.dwdataconcepts.com

Share on Facebook Share on Twitter

  Sample input:
QBDateRange (Today , Monday ; January )
  Sample output:
9/13/2005...9/13/2005

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Get Quickbook Pro types of Date Ranges.

Here are the choices for each parameter*:

DateChoice=
ALL
Today
This Week
This Week-to-date
This Month
This Month-to-date
This Fiscal Quarter
This Fiscal Quarter-to-date
This Fiscal Year
This Fiscal Year-to-date
Yesterday
Last Week
Last Week-to-date
Last Month
Last Month-to-date
Last Fiscal Quarter
Last Fiscal Quarter-to-date
Last Fiscal Year
Last Fiscal Year-to-date
Next Week
Next 4 Weeks
Next Month
Next Fiscal Quarter
Next Fiscal Year

FirstDayWeek=
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday

FiscalMonth=
January
February
March
April
May
June
July
August
September
October
November
December

* define as a value list

When using this in FIND MODE, the parameters "FirstDayWeek" and "FiscalMonth" probably need to be stored or moved into GLOBAL FIELDS prior to entering find mode.

You can also parse the start and end date results into separate fields to filter portals.

cStartDate = (Calculation, Date Result) = LeftWords(QBResult, 1)

cEndDate = (Calculation, Date Result) = RightWords(QBResult, 1)

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: