Re: 日付表示時の書式について
2015年9月8日 at 13:57
追伸です。
フォーラムへの書き込み後、本サイトに5.7用に日付書式設定用の説明ページがありました。
http://concrete5-japan.org/help/5-7/recipes/get-collection-public-date-with-custom-format/
上記にあった、「format」を使用したのですが、
<?php echo $c->getCollectionDatePublic()->format('Y/m/d'); ?>
この場合は、
Call to a member function format() on string
という例外が発生してしまうようです。
ブロックで使用する場合は使い方が違いますでしょうか?
Your post has been saved and will be published after approval by the forum moderator.