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.

problem displaying dates

June 18, 2010 8:49pm

Subscribe [2]
  • #1 / Jun 18, 2010 8:49pm

    Hi all of you ! Bonjour from Paris.

    I need help please. Something is hapening with dates and I don’t understand it.

    a) First I have no problem displaying system date for example

    {entry_date format="%D %d %F %Y"}

    b) I have a custom field named videonews_date_JV witchi is declared as date type field.
    And When I call him like this:

    {exp:weblog:entries weblog="videonews" oderby="videonews_date_JV" sort="desc"}
    {videonews_date_JV format="%D %d %F %Y}
    {/exp:weblog:entries}

    There is nothing displayed. Just nothing !

    I very thank everybody that can help me.

    [Mod Edit: Moved to the Technical Support forum]

  • #2 / Jun 19, 2010 2:34pm

    Greg Salt

    3988 posts

    Hi Abdellah,

    Please post just this code into a new test template and let’s see if anything at all is being returned by the custom field:

    {exp:weblog:entries weblog="videonews" dynamic="off"}
    {videonews_date_JV}
    
    
    {videonews_date_JV format="%D %d %F %Y"}
    {/exp:weblog:entries}

    Please note that my code fixes two typos in your posted code that you may still have in your template: orderby vs oderby, and there is no closing quote in your custom field format string.

    Cheers

    Greg

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

ExpressionEngine News!

#eecms, #events, #releases