ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Date

July 10, 2008 10:18am

Subscribe [2]
  • #1 / Jul 10, 2008 10:18am

    kriz

    231 posts

    Greetings all,

    Simple question.

    I do the following:

    <h2>
        By: <span>{author}</span> 
        on <span>{date format="%F %d %Y"}</span>
    </h2>

    And i get the author, but the date displays as: By: Admin on {date format="%F %d %Y"}.

    What am I doing wrong here?

  • #2 / Jul 10, 2008 11:21am

    Ingmar

    29245 posts

    There is no variable {date} (at least in this context). There is {entry_date}, or {current_time}, however.

  • #3 / Jul 10, 2008 11:34am

    kriz

    231 posts

    There is no variable {date} (at least in this context). There is {entry_date}, or {current_time}, however.

    Thanks, that worked. Its just the doc ( at: http://expressionengine.com/docs/templates/date_variable_formatting.html ) mentioned “date”

  • #4 / Jul 10, 2008 12:02pm

    Ingmar

    29245 posts

    Yes, but that’s just a generic “date” variable. Sorry for the confusion.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases