Welcome Guest, Not a member yet? Register   Sign In
[solved ] date like forum post ?
#1

[eluser]umefarooq[/eluser]
Hi
one table of my application has field datetime i just want to know how can i calculate the date like forum if somebody post some topic on fourm it is showing datetime like

Code:
5 minutes ago
10 minutes ago

if it more 60 min

1 hour ago

if one day old showing date
#2

[eluser]Colin Williams[/eluser]
You can use the timespan() function in the date helper or extrapolate from this function in drupal: http://api.drupal.org/api/function/format_interval/6
#3

[eluser]umefarooq[/eluser]
problem is solved i just googled and fond some thing intersting here is the link

http://aidanlister.com/2004/04/making-ti...-readable/

if somebody has some thing different please share




Theme © iAndrew 2016 - Forum software by © MyBB