PDA

Click to See Complete Forum and Search --> : Assign datevar first of current month [Resolved]


BIGGY
Apr 26th, 2006, 10:20 AM
I have a datevar 'firstofmonth' in Crystal Reports. I'm trying to set that variable to be the first of the current month and year. My thinking is something along the lines of: firstday := month(currentdate) & 1 & year(currentdate)

Anyone know the correct syntax for this?

Thanks much!

BIGGY
Apr 26th, 2006, 11:23 AM
Resolved: I fgured out

firstday := date(year(currentdate) , month(currentdate) , 01 );