Change Date Format – please

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1626
    xpuser8334
    Participant

    Hi,
    My Date Format on the invoice is yyyy-mm-dd

    Can this be changed to dd-mm-yyyy
    or dd-Mon-yyy please?
    the previous version used to have date format such as 14-Dec-2021 and not 2021-12-14

    the config file Shows Timezone as Europe/London and all other settings are GBP etc…

    Thanks in advance.

    #1627
    RRowley
    Participant

    I’m assuming you are referring to the printed invoice and not the invoice maintenance screens. You can modify the printed invoice template but not the maintenance screens. If this is the printed invoice, which template are you using? You can find this in the SI Defaults settings.

    #1628
    xpuser8334
    Participant

    Hi,
    I’m using the default invoice template – it does what I need it to, to be honest.
    but…
    New Invoice – the date is yyyy-mm-dd
    Listing Invoices – the date is yyyy-mm-dd
    Printing Invoices – the date is yyyy-mm-dd

    On the previous 2019 version – I have some invoices which printed 12-Oct-2020.
    I have Looked in Settings > SI Defaults but I can’t see anything “date format” wise.

    In the ini Files within Config, they are set to D-m-Y

    Many Thanks,
    Wayne

    Attachments:
    #1651
    bhullar89
    Participant

    For printed invoice you can change to format in your tempate as below

    {$invoice.date|utilDate|date_format:”%d %h %Y”}

    You can check for formats identifiers here https://www.php.net/strftime

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.