Hi there. Does anyone know how to use Word fields to evaluate a date passed from a mailmerge field to see if it falls between two dates?
For example, if I want to know whether 10th September 2007 is between 1st September 2007 and 15th September 2007, how do I do this?
Assuming the Date merge field contains the 10th September 2007 (in some format), I would have thought that this would work:
But it doesn't. I'm using Word 2002. Does anyone have any suggestions? Thanks in advance.
For example, if I want to know whether 10th September 2007 is between 1st September 2007 and 15th September 2007, how do I do this?
Assuming the Date merge field contains the 10th September 2007 (in some format), I would have thought that this would work:
Code:
{IF {=AND({MERGEFIELD Date}> 01092007, {MERGEFIELD Date}<15092007)}=1, "Between" "Not Between"}
But it doesn't. I'm using Word 2002. Does anyone have any suggestions? Thanks in advance.