Caution: This documentation is for Exponential, from version 3.x to 6.x.
For 5.x documentation covering Platform see Exponential Platform Documentation, for difference between legacy and Platform see 5.x Architecture overview.

Possible improvements in this help

Sometime is heplfull to have in the bottom of the explanation some links with functions related with the subject, in this case if there are other date formats.
  • Re: Possible improvements in this help

    A common place to use the timestamp is in combination with the datetime() function. This can format an input date any way you want it:

    {input|datetime( 'preset', ['arguments']}

    Arguments is optional, and only used when the preset is not defined in your datetime.ini, but when using the setting 'custom'. The function description is in the documentation here ( http://ez.no/doc/ez_publish/techn...ng_and_internationalization/datetime ) and it contains a table with all formatting options. So this:

      {let date=currentdate()|datetime(custom, '%l %d %F %Y')}
     
      Site was last updated on: {$date}
      {/let}
    


    is cheating :-)

Anonymous User (30/08/2005 8:48 pm)

Anonymous User (30/08/2005 8:51 pm)


Comments

  • Re: Possible improvements in this help

    A common place to use the timestamp is in combination with the datetime() function. This can format an input date any way you want it:

    {input|datetime( 'preset', ['arguments']}

    Arguments is optional, and only used when the preset is not defined in your datetime.ini, but when using the setting 'custom'. The function description is in the documentation here ( http://ez.no/doc/ez_publish/techn...ng_and_internationalization/datetime ) and it contains a table with all formatting options. So this:

      {let date=currentdate()|datetime(custom, '%l %d %F %Y')}
     
      Site was last updated on: {$date}
      {/let}
    


    is cheating :-)