AddaByte    Programmers' Script Repository
Free and low cost software.
spacer
Find out about our beautiful fractal backgrounds at abm-enterprises


Newsletter Signup
Name
Email
 

  C# - String handling - Calculate Date Difference
 


Save up to 75% on software

Drive Clone

the best name in hosting


using System;
using System.Collections.Generic;
using System.Text;

namespace Console_DateTime

{
    class Program
    {
        static void Main(string[] args)

        {
            System.DateTime dtTodayNoon = new System.DateTime(2006, 9, 13, 12, 0, 0);
            System.DateTime dtYestMidnight = new System.DateTime(2006, 9, 12, 0, 0, 0);
            System.TimeSpan diffResult = dtTodayNoon - dtYestMidnight;
            Console.WriteLine("Yesterday Midnight - Today Noon = " + diffResult.Days);
            Console.WriteLine("Yesterday Midnight - Today Noon = " + diffResult.TotalDays);
            Console.ReadLine();
        }
    }

}
  What does it do?
   no description given
 
  Features
  Added by Added Downloads Rating Popularity

  rpgivpgmr

4:33:13 AM Friday, April 17th 2009

9

not rated

 
 
  About the file
  Size Download Rate It  

  773 KB
  download this file
 
 
  Comments
no comments
 
  Add your comment
 Email  
 Subject  
 Comment  
 Verification code:

 
    All comments are screened by the admin prior to being posted
     
 
  Contacts
  Report Abuse