Focal Point
HELP! I need to create/find a particular date function

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8311023792

August 28, 2008, 02:08 PM
Denny99
HELP! I need to create/find a particular date function
I want to set up a report to execute the first day of the month in which the date criteria will be based on the previous month. For example on September 1, 2008 I want to execute a report which will extract data from August 1, 2008 thru August 31, 2008 (previous month)without any manual intervention. I will set up the report in ReportCaster and it will automatically execute on the First of every month. I know there is a way but I cannot find any date documentation pertaining to this. I know other languages (i.e. Crystal) have functions that pertain to "Last full week", "Last Year", "Last Month", "Last 90 days" etc... Thanks A Million, all!
August 28, 2008, 02:18 PM
jimster06
First - before Ginny asks you to - Update your signature to let us know what platform, suite you are using.

Second - RC can be set to kick off on the first of each month (Make sure that is what you want)

Third - there is a plethora of date functions in WF. One will allow you to subtract one from the current month to get the prior month and another to select BOM beginning of the month and EOM end of the month.

You can find these in the functions manual, the help facility in the product you are using, or search the technical documentation library which is accessible from the upper right of this screen.

This message has been edited. Last edited by: jimster06,


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
September 02, 2008, 10:04 AM
PBrightwell
Search for AYM and AYMD


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
September 02, 2008, 01:13 PM
FrankDutch
Denny

You have functions available like actual date (&YYMD). And from that starting point it's rather easy to go to the former month begin and enddate.
It also depends on the internal format of your date, that might give you the possibility to sat something like
WHERE MONTH EQ '200808'




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7