TravisLaborde
IS-IT--Management
How can I find the last day in the month for a given date in TSQL?
For example, if I have a field account_date with values such as 4/23/2003, 5/10/2003... I'd like to return 4/30/2003, 5/31/2003 in my queries.
I need it to be in-line sql or a function or such so that I can then group based on the converted date.
Any help would be great!
Thanks,
Travis
For example, if I have a field account_date with values such as 4/23/2003, 5/10/2003... I'd like to return 4/30/2003, 5/31/2003 in my queries.
I need it to be in-line sql or a function or such so that I can then group based on the converted date.
Any help would be great!
Thanks,
Travis