Let's Sharepointing together
mardi 8 février 2011
Calculate the number of business days between two dates
In this post, I will explain a very elegant way to calculate the number of business days between two dates.
First, let's define an Extension Method on DateTime like so:
Then, Create a method that returns a List of DateTime
And finally, Use a Where clause to filter a broader list of dates:
Aucun commentaire:
Enregistrer un commentaire
Article plus récent
Article plus ancien
Accueil
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire