Convert Days To Seconds - CSharp System

CSharp examples for System:DateTime Day

Description

Convert Days To Seconds

Demo Code


using System;/*from w  w w.  j a  v a 2s.  c  o m*/

public class Main{
        public static double ConvertDaysToSeconds(double days)
        {
            return TimeSpan.FromDays(days).TotalSeconds;
        }
}

Related Tutorials