I'm looking for a way to format time duration originally expressed in hours (as a 'double' variable) for an ASP.NET web app written in C#. I need a short version that has only 2 significant values. For instance:\[code\]1h:20m2d:20h 2mo:12d 5y:2mo\[/code\]I searched and it seems like C# does not have a built-in function for what I need. So I decided to write my own but I'm stumped with correct formatting of all the parts. For instance, I may get a string, such as "1d:24h", or for a simple 2 months, I may get "1mo:29d"PS. The problem I've encountered is in defining how many days are in a month and in a year.