Hello everybody,
I'm writing in this forum to ask some advice about do a difference between two dates.
I've seen a lot of material about this online, but I've not found what could be the better solution for me...
What I would like to get is the difference between the actual date-time and a past date-time... so something like "5 minutes ago", "1 hour ago", "1 day ago", etc.
In my table I've at the moment 5 columns: id, cat, rif, comment, date (datetime).
In the 'date' fields I have recorded the time when the comment has been sent.
Now, before to become too much crazy I was asking me what could be the better way to proceed...
For example I've seen the DATEDIFF function, but how do I use it in my case?
Thanks a lot for your time
