Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculating deadline from business hours
Message
De
24/01/2003 10:47:39
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, États-Unis
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Calculating deadline from business hours
Divers
Thread ID:
00745070
Message ID:
00745070
Vues:
54
I need to be able to calculate a deadline that is x hours from an input datetime. The calculation has to count only business hours (i.e. 8:00 AM to 5:00 PM) and exclude weekends and holidays. For example, if I have a 4 hour deadline, beginning at 3:00 PM on Monday, the deadline should be at 10:00 AM Tuesday. Likewise a 4 hour deadline at 3:00 PM Friday would be due at 10:00 AM Monday. I have UDF's that determine if a day is a weekend or holiday.

TIA

John
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform