Convert Milliseconds To Days - CSharp System

CSharp examples for System:DateTime Day

Description

Convert Milliseconds To Days

Demo Code


using System;/*from   w  w w.  j  a v  a2 s .  c om*/

public class Main{
        #region To days
        public static double ConvertMillisecondsToDays(double milliseconds)
        {
            return TimeSpan.FromMilliseconds(milliseconds).TotalDays;
        }
}

Related Tutorials