views:

6

answers:

0

I am trying to edit the xml code in an Open office document so that it will print a date depending on today's date.

Basically I want it be something like this:

  • If today's date is between the first and the 15th, then the due date is the first of the following month.
  • else if today's date is between the 16th and the 31st, the due date is the first of the month after next.

  • So, if today's date is July 14th, its due August 1st,

  • or if today's date is July 16th, its September 1st

Can anyone help with this?