Convert Hours To Days - CSharp System

CSharp examples for System:DateTime Day

Description

Convert Hours To Days

Demo Code


using System;// w w w  .  j a  va2  s.  co m

public class Main{
        public static double ConvertHoursToDays(double hours)
        {
            return TimeSpan.FromHours(hours).TotalDays;
        }
}

Related Tutorials