Format A TimeSpan With Years
问题 I have a class with 2 date properties: FirstDay and LastDay . LastDay is nullable. I would like to generate a string in the format of \"x year(s) y day(s)\" . If the total years are less than 1, I would like to omit the year section. If the total days are less than 1, I would like to omit the day section. If either years or days are 0, they should say \"day/year\", rather than \"days/years\" respectively. Examples: 2.2 years: \"2 years 73 days\" 1.002738 years: \"1 year 1 day\" 0.2 years: \