Is it possible to count the days separating two dates excluding weekends ?
Sorry if the topic has already been discussed, I did not find anything similar on the forum
Thank you in advance !
Best regards,
Eric
2 Answers, 1 is accepted
0
Accepted
Dimitar
Telerik team
answered on 02 Aug 2013, 09:15 AM
Hi Eric,
Thank you for writing.
To calculate business days only, you can use a custom expression function like the following one:
public class CustomExpressionContext : Telerik.Data.Expressions.ExpressionContext
{
public double GetBusinessDays(DateTime startD, DateTime endD)
I hope this information helps. Should you have any other questions, I will be glad to assist you.
Regards,
Dimitar
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely. Sign up for Free application insights >>