Quite simply, the 2 seconds ago, 1 day ago, 2 weeks ago, etc. What is the most optimal way to accomplish this?
Using SQL Server for DB. Is this done at a query level? Or javascript on page load?
Also, how it updates every so often by itself... Do you think it's all javascript on client-side for the user experience, or a lot of ajax requests recalculating?
Just looking for advice on the best way to reproduce this type of timestamp.
I have a commenting system on my site and I'm simply using the values from the SQL Date_Created field that I have in the table.
Thank you all so much.