 <pre><code>Today at 14:34 Yesterday at 10:20 2 days ago (02/02/2015 12:43) Last week (04/01/2015 12:42) </code></pre> <p>You can format the date and time format using custom DateTime format strings. The other part you will need to code in your own logic.</p> <p><a href="https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx" rel="nofollow">MSDN: Custom DateTime Format Strings</a></p> <pre><code>DateTime dd = now; dd.ToString("HH:mm"); dd.ToString("dd/MM/yyyy HH:mm"); </code></pre>