Skip to main content
Search
Search This Blog
Code Help Desk
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
Labels
C#
September 06, 2012
Get number of days between two days in C#
DateTime sDate = Convert.ToDateTime("Your StartDate here");
DateTime eDate = Convert.ToDateTime(" Your EndDate here");
TimeSpan ts = sDate - eDate;
SiteSecurity.numberOfDays = ts.Days;
Comments
Popular Posts
October 07, 2013
zoom web browser control - c#
March 23, 2012
gridview CellEditorInitialize in c#
Comments
Post a Comment