keepingbusy
Programmer
Hi
Version 9
The following replaces a field in a table with the 1st day of the current month:
Code:
REPLACE MYFIELD WITH GOMONTH(DATE(), IIF(DAY(DATE())=1,1,0)) ;
- DAY(GOMONTH(DATE(), IIF(DAY(DATE())=1,1,0))-1)
So in other words, if the date was 01/06/2010 I would want the field replaced with 01/07/2010 or if one less -1 month.
These are british date formats (DD/MM/YYYY).
Any guidance would be appreciated.
Thank you