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.

Template Questions /

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

Adding Full Date Such as "Friday, October 3, 2010" Using $Now


Go to End


3 Posts   1501 Views

Avatar
GustyPolo

Community Member, 9 Posts

2 October 2010 at 2:48am

Is there a way to do that? I've tried $Now.Long but it doesn't show the actual day of the week. Is this possible?

Thanks,

Avatar
swaiba

Forum Moderator, 1899 Posts

2 October 2010 at 2:55am

You can place anything into the controller of course, but using the Template, easy...

$Now.Format(<custom formater*>)

*http://php.net/manual/en/function.date.php

Avatar
GustyPolo

Community Member, 9 Posts

4 October 2010 at 4:12am

Thank you very much. Works like a charm :)