I need a small function that starts from
@eventDate = '2004-14-03 01:16:12.000'
THEN
adds one day to that date and then determines
the day of the week from that date
I also need to convert '2004-14-03 01:16:12.000'
into '03/14/2004' type of string format.
I know datepart(dw, 3/1/2004') will work fine giving you a numerical value for day of the week.
but the above format '2004-14-03 01:16:12.000' plugged
in just makes that blow up.
In this case '2004-14-03 01:16:12.000' + 1 day
should return '1' which corresponds for monday.
Any ideas ????
@eventDate = '2004-14-03 01:16:12.000'
THEN
adds one day to that date and then determines
the day of the week from that date
I also need to convert '2004-14-03 01:16:12.000'
into '03/14/2004' type of string format.
I know datepart(dw, 3/1/2004') will work fine giving you a numerical value for day of the week.
but the above format '2004-14-03 01:16:12.000' plugged
in just makes that blow up.
In this case '2004-14-03 01:16:12.000' + 1 day
should return '1' which corresponds for monday.
Any ideas ????