Hello,
I have a script that uses a DateDiff to calculate the dfference between the time and order is created inthe database and the schedule shipdate. This works fine during the weekdays Monday - Thursday but on Friday the date diff between Friday and Monday is 3 days.
DATEDIFF(D,CONVERT (VARCHAR(30),SH.CREATION_DATE_TIME_STAMP,1), SH.SCHEDULED_SHIP_DATE) BETWEEN 0 AND 1
Is there a way to have the datediff look at between 0 and 1 Monday to Thursday and 0 to 3 is the date is Friday?
Thanks in advance
RJL
I have a script that uses a DateDiff to calculate the dfference between the time and order is created inthe database and the schedule shipdate. This works fine during the weekdays Monday - Thursday but on Friday the date diff between Friday and Monday is 3 days.
DATEDIFF(D,CONVERT (VARCHAR(30),SH.CREATION_DATE_TIME_STAMP,1), SH.SCHEDULED_SHIP_DATE) BETWEEN 0 AND 1
Is there a way to have the datediff look at between 0 and 1 Monday to Thursday and 0 to 3 is the date is Friday?
Thanks in advance
RJL