Hi Ken,
The DateString function is simply to apply formatting to a particular date, such as Mar 31, 2006 in your case. If you want to include the prior year 2005 with your text, you have to calculate it.
The function to take the year from a date is YEARL, and subtract 1 from the result. You then have to convert this number to a string to include it with the rest of the text. The formula to do this is:
=STRING(YEARL(ADGET("gldates.END",FPRIOR(0)))-1,0)
So to add to the rest of what you previous posted, a formula to get what you want is:
=DATESTRING(ADGET("gldates.END",FPRIOR(0)),"%b %d %Y with comparative to ") & STRING(YEARL(ADGET("gldates.END",FPRIOR(0)))-1,0)
-----
An alternate way to get a date 12 fiscal periods prior to the one selected from the toolbar is to change the function parameter from 0 to 12:
=ADGET("gldates.END",FPRIOR(12))
This would give a second way to get the year:
=STRING(YEARL(ADGET("gldates.END",FPRIOR(12))),0)
_________________________
Regards,
Softrak Tech Support