CustomerResearch
Programmer
Hello. I need to make a script that will pull records from an external source at half month intervals with the 15th of each month being the mid month draw line. For instance:
1st-15th Jan
16th-31st Jan
1st - 15th Feb
15th - 28th Feb
etc.
This is a new variation on something we sort of allready do. You see I have scripts set up to go back 3 days or a week and pull all the records. This isn't a big deal because the month has no effect on the individual weeks (I just use a multiple of the number of seconds in a day and go from there). The problem is if I try to do that with a script that will go back and pull records from 6 months or a year ago, and pull like I mentioned above, I can end up overshooting or undershooting depending on the month span (such as over Feb) or the number of days I use in a month (like 30).
Any suggestions?
-------------------------------
Brian, Customer Research Inc
1st-15th Jan
16th-31st Jan
1st - 15th Feb
15th - 28th Feb
etc.
This is a new variation on something we sort of allready do. You see I have scripts set up to go back 3 days or a week and pull all the records. This isn't a big deal because the month has no effect on the individual weeks (I just use a multiple of the number of seconds in a day and go from there). The problem is if I try to do that with a script that will go back and pull records from 6 months or a year ago, and pull like I mentioned above, I can end up overshooting or undershooting depending on the month span (such as over Feb) or the number of days I use in a month (like 30).
Any suggestions?
-------------------------------
Brian, Customer Research Inc