Hi there,
how can I emulate the twitter like function: my tweet 5 minutes ago.
I´m usign a database to retreive the date of a post. I want to display the elapsed time.
Using datediff()??
thank you.
Hi there,
how can I emulate the twitter like function: my tweet 5 minutes ago.
I´m usign a database to retreive the date of a post. I want to display the elapsed time.
Using datediff()??
thank you.
¡May all be for the good of humanity!
http://www.dechihuahua.com
Community of Chihuahua, Mexico
---------- (50%)
SELECT
[whatever]
FROM
[your table]
WHERE
datediff(mi, [your date/Time column], getdate()) <= 5;
SQL DateDiff function
Bruno Alexandre
Strøby, Danmark
"a Portuguese in Denmark"
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks