Convert Days To Hours - CSharp System

CSharp examples for System:DateTime Day

Description

Convert Days To Hours

Demo Code


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

public class Main{
        public static double ConvertDaysToHours(double days)
        {
            return TimeSpan.FromHours(days).TotalHours;
        }
}

Related Tutorials