Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

DateField: How to access <xyz> time ago value?


Go to End


2 Posts   1254 Views

Avatar
biapar

Forum Moderator, 435 Posts

19 October 2010 at 1:02am

Hi,

How read time ago value from DateField?

Thx

Avatar
Willr

Forum Moderator, 5523 Posts

19 October 2010 at 4:26pm

$Date.Ago ?? or if you're in PHP $this->dbObject('Date')->Ago()