Good morning,
I am merging a "Year End" date field into a Word Document that is stored as January 31, February 28, etc. I need to make changes to the date in the document rather than in the source file.
I was having trouble that the year was defaulting to the current year 2013 and was thought I was able to correct that using SET DELAY -365.
There is another field that needs to be the first day of the prior plan year. So, January 1, 2012 for December 31, 2012 year ends. Using SET DELAY -730 works well for the December year ends. For other plan year ends, it goes all wonky:
Jan 31 year ends returns Jan 2 as the first (2011) and last (2012) day of the plan year. Both should be 2012.
Feb 29 YE returns Jan 3
Mar 31 returns Jan 4
Oct 31 YE returns Jan 11
I believe the code I am using is from the "Calculate a day, date, month and year, using n days delay" section of DateCalc V2_85.doc
by Macropod.
I think my problem is in needing to make some tweaks to the other SET fields (I did manage to remove the day). I am not familiar with this coding and don't even know enough to be able to Google for help. Can someone tell me what this language is called
and point me in the right direction to learn more about how it works and what the commands mean?
Thank you!