1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Amending date format in admin/home.tpl

Discussion in 'Templates, HTML, CSS, and Design Help' started by jason1971, Sep 10, 2014.

  1. jason1971 Customer

    Hi all,

    If possible I would like to amend the date format in administration/templates/defaults/home.tpl.

    Currently the date format is 2014-05-30 09:15:38
    How could I change this to UK format 30-05-2014 ????

    I am assuming it is pulled from the following, but I am unsure how to change it

    <td class="{cycle values="row1,row2" advance=false}">{$entry.oProduct}</td>
    <td class="{cycle values="row1,row2" advance=false}">{$entry.total|format_money}</td>
    <td class="{cycle values="row1,row2" advance=false}">{$entry.oDate|date_format:$dateformat}</td>

    Many Thanks

    Jason
  2. Mike-N-Tosh Owner

    Jason,

    You set the date format in your administration "Regional Settings", separately for the front end ("Date Format") and the administration ("Administration Date Format") views.
    Administration/Settings/Settings/Regional Settings
    Online Documentation about this: Regional Settings

    OR if you just want to change it within the template modifier, then refer to the smarty documentation

Share This Page