using System; public class Test { public static void Main() { // your code goes here var a = 6.55; var dt = DateTime.FromOADate(a*365); var year = Math.Floor(a); var month = Math.Floor((a - year) * 12); Console.WriteLine("{0} year {1} month", dt.Year - 1900, dt.Month); Console.WriteLine("{0} year {1} month", year, month); } }