starbase59
MIS
I am looking for sql syntax that will pull the last business day(Monday thru Friday), with GETDATE.
For example, using GETDATE:If GETDATE was a Monday, I would want it to retreive Friday, or if GETDATE was a Tuesday, and Monday was a holiday, then Id want to retreive the last business day, which would be Friday.
Has anybody already done this? Is there a function for this?
Many thanks ahead of time.
For example, using GETDATE:If GETDATE was a Monday, I would want it to retreive Friday, or if GETDATE was a Tuesday, and Monday was a holiday, then Id want to retreive the last business day, which would be Friday.
Has anybody already done this? Is there a function for this?
Many thanks ahead of time.