ulfemsoy (10/12/2011)
If you only want to get the day index, you should check the following description:
You don't need a UDF for this...
SELECT (DATEDIFF(dd,'17530101',GETDATE())-1) %7
--Jeff Moden
Change is inevitable... Change for the better is not.