Hi,
does anyone have any idea how can we get last date of the month in SQL reportging.
I am using following fomula, but it works only for 31 days of month, not for feb,april,june. ..(30 days)
=month(today()) & "/" & DatePart("d", DateAdd("d", -1, DateAdd("m", 1, DateAdd("d", -DatePart("d", today()) + 1, today())))) & "/" & year(today())
does anyone have any idea how can we get last date of the month in SQL reportging.
I am using following fomula, but it works only for 31 days of month, not for feb,april,june. ..(30 days)
=month(today()) & "/" & DatePart("d", DateAdd("d", -1, DateAdd("m", 1, DateAdd("d", -DatePart("d", today()) + 1, today())))) & "/" & year(today())
Comment