# Radius Tag Date Format

**URL:** <https://www.ruby-forum.com/t/radius-tag-date-format/130861>\
**Category:** Radiant CMS\
**Created:** [March 4, 2008, 12:13am UTC](https://www.ruby-forum.com/t/radius-tag-date-format/130861 "2008-03-04T00:13:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [March 4, 2008, 12:13am UTC](https://www.ruby-forum.com/t/radius-tag-date-format/130861/1 "2008-03-04T00:13:43Z")

</div>

I’m using a basically unmodified version of the “Stylized Blog”  
template.

I want to use a custom date format but I can’t get it to work. In the  
following example, the first two dates do not display at all. The third  
one (the one that ships with Radiant) does display.

on

Posted by on

Posted by on

Do I have to define my custom date formats before I can use them?

Thanks in advance,

Ben

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [March 4, 2008, 12:22am UTC](https://www.ruby-forum.com/t/radius-tag-date-format/130861/2 "2008-03-04T00:22:58Z")

</div>

It uses Time.strftime internally:  
[http://www.ruby-doc.org/core/classes/Time.html#M000297](http://www.ruby-doc.org/core/classes/Time.html#M000297)

IIRC, %F is not valid in a strftime string.

Sean

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [March 4, 2008, 6:06am UTC](https://www.ruby-forum.com/t/radius-tag-date-format/130861/3 "2008-03-04T06:06:39Z")

</div>

Thanks Sean! I assumed the strftime strings were the same as PHP. Lesson  
learned. 😉
