QBDateRange ( DateChoice ; FirstDayWeek ; FiscalMonth )
Get Quickbook Pro types of Date Ranges.
Average rating: 3.8 (38 votes) Log in to vote
Don Wieland - Show more from this author
DW Data Concepts http://www.dwdataconcepts.com |
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
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.