C
Christy
I am having a problem increasing a date by one month. I
always want the date to be the last date of the month. I
have figured out a way to make it work but I don't
understand it. I am not sure what the zero represents.
Could someone explain this function to me & what the zero
represents. Below are the examples of what works &
doesn't.
If Date1= 2/28/2004
Does Not Work:
DateAdd("m",1,[Date1]) - Returns a date of 3/28/04. I
want it to be 3/31/04
DateSerial([Date1],([Date1]+1),[Date]) - Returns a date of
4/2/04. I want it to be 3/31/04
Does Work but do not understand Why:
DateSerial([Date1],[Date1]+2),0)
Returns: 3/31/04
Thanks!
always want the date to be the last date of the month. I
have figured out a way to make it work but I don't
understand it. I am not sure what the zero represents.
Could someone explain this function to me & what the zero
represents. Below are the examples of what works &
doesn't.
If Date1= 2/28/2004
Does Not Work:
DateAdd("m",1,[Date1]) - Returns a date of 3/28/04. I
want it to be 3/31/04
DateSerial([Date1],([Date1]+1),[Date]) - Returns a date of
4/2/04. I want it to be 3/31/04
Does Work but do not understand Why:
DateSerial([Date1],[Date1]+2),0)
Returns: 3/31/04
Thanks!