A
Andy B.
Is there any way to do date calculations with field codes
(i.e. without resorting to VBA), specifically in the
following two situations:
1. I would like to print the last day of the month
immediately preceding the current date (i.e. the result of
a Today field code). For example, today is 10/29/03 and I
would like to insert a reference to September 30, 2003. I
assume that I can parse the date. The month is "easy" [{
QUOTE { IF { DATE \@ "M" } = 1 "12" " {= { DATE \@ "M" } -
1 } " }/1/95 \@ "MMMM" }] and the year is similar. The
day appears to be much more difficult. How do I do the
day and is there an easier method to do the entire date?
2. I would like to insert a date which is 60 days (for
example) after the date obtained using an Ask field.
Thank you.
Andy B.
(i.e. without resorting to VBA), specifically in the
following two situations:
1. I would like to print the last day of the month
immediately preceding the current date (i.e. the result of
a Today field code). For example, today is 10/29/03 and I
would like to insert a reference to September 30, 2003. I
assume that I can parse the date. The month is "easy" [{
QUOTE { IF { DATE \@ "M" } = 1 "12" " {= { DATE \@ "M" } -
1 } " }/1/95 \@ "MMMM" }] and the year is similar. The
day appears to be much more difficult. How do I do the
day and is there an easier method to do the entire date?
2. I would like to insert a date which is 60 days (for
example) after the date obtained using an Ask field.
Thank you.
Andy B.