DateTime series of Years months weeks and mins ago
<p>I don't know quite exatly what im doing in my example but what i need my function to return is a string that is represented like this </p>

<pre><code>1yr, 2 months or
1yr or
2months or
2months 2weeks or
3mins ago
</code></pre>

<p>if someone knows how todo this then please leave a answer</p>

<pre><code>private string GetTimeSpan(DateTime creationDate)
{
    string timespan = "";
    if (Math.Floor(DateTime.Today.Subtract(creationDate).TotalDays / 365.25) &gt;= 1)
    {
        timespan += ((int)Math.Floor(DateTime.Today.Subtract(creationDate).TotalDays / 365.25)).ToString() + "yr, ";
    }
    else if (Math.Floor(DateTime.Today.Subtract(creationDate).TotalDays / 365.25) &lt; 1)
    {
        timespan += ((int)Math.Floor(DateTime.Today.Subtract(creationDate).TotalDays / 365.25)).ToString();
    }

    return timespan;
}
</code></pre>
