+ Reply to Thread
Results 1 to 6 of 6

Thread: Date Format

  1. #1
    Client
    Join Date
    Mar 2006
    Posts
    37
    Squirrelcart version
    v2.4.5

    Date Format

    An admin area to set how date is displayed would be good.

    Month/Day/Year or Day/Month/Year

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,719
    Squirrelcart version
    v3.3.7
    Yes, it certainly would... along with a timezone setting. We've been planning both for awhile but haven't added them yet. I'll sticky this thread so it gets more attention.

  3. #3
    Client
    Join Date
    Jun 2005
    Location
    UK
    Posts
    58
    Squirrelcart version
    v3.1.0
    I edited core files to get dates in DD/MM/YYYY format, if date format could be set from template files or from the admin area it would save me a lot of trouble when I do upgrades - I'm scared off doing upgrades because of this.

  4. #4
    Client mNolan's Avatar
    Join Date
    Oct 2010
    Posts
    25
    Squirrelcart version
    v3.3.6
    Hey RobC
    Did you by any chance edit order_detail.tpl.php? I managed to change the dates in order history but when I tried to change the date for order_detail, it just appeared as ' / / '.

    Original php:
    <?php print $Status['Date'] ?>

    My php:
    <?php print $Status['Day'] ?>/<?php print $Status['Month'] ?>/<?php print $Status['Year'] ?>

    Any help would be fab!
    thanks

  5. #5
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,719
    Squirrelcart version
    v3.3.7
    Change this:
    PHP Code:
    <?php print $Status['Date'?>
    To this:
    PHP Code:
    <?php print date('d/m/Y',strtotime($Status['Date'])) ?>

  6. #6
    Client mNolan's Avatar
    Join Date
    Oct 2010
    Posts
    25
    Squirrelcart version
    v3.3.6
    awesommeeeeee.

    thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts