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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   1165 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 :)