Get elapsed time from SQL Server for notification system
<p>I have a date in SQL Server from a view... I want to know how many minutes, days, months, years have passed between the date from SQL Server and the current date.</p>

<p>If minutes are less than 2 it should give me "Just Now", if not it should give me "3 Minutes" also if a day has passed should say "1 day ago" something like that..</p>

<p>Thanks !</p>