usingFC.Core.Extension.DateHandlers;DateTime dtAge =newDateTime(2016,02,25);int age =dtAge.Age(); _output.WriteLine($"Age of person born at {dtAge.ToLongDateString()} is '{age}'");
Get Age & Month
usingFC.Core.Extension.DateHandlers;DateTime dtAge =newDateTime(2016,02,25);int age =dtAge.Age();double month =dtAge.AgeInMonth();_output.WriteLine($"Age of person born at {dtAge.ToLongDateString()} is '{age}' Month {month}");