Home Forums SQL Server 2008 T-SQL (SS2K8) Need help to display row as 2 days ago, 1 hours 34 Minutes ago, 11 minutes ago RE: Need help to display row as 2 days ago, 1 hours 34 Minutes ago, 11 minutes ago

  • Go to Books Online and read up on the DatePart, DateDiff and DateAdd functions and how to use them to take apart DATETIME columns.

    Also look at Lynn Pettis' excellent summary of how to use them: http://www.sqlservercentral.com/blogs/lynnpettis/2009/03/25/some-common-date-routines/

    Good luck,

    Sigerson

    "No pressure, no diamonds." - Thomas Carlyle