Jump to content

Recommended Posts

Posted

Beside using the below method for displaying a datetime field with it's multi-language formats, are there more methods for doing the same thing?

<?= utf8_encode(strftime($order->pad_paid)) ?>

I'm not looking for methods with hardcoded multi-language values like this one: 

<?= utf8_encode(strftime("%b %d, %Y", $order->getUnformatted("pad_paid"))) ?>

 

Posted

Here is an alternative method that actually solved my problem where I was getting a unix timestamp:

<?= $order->getFormatted("pad_paid") ?>

If you know more methods feel free to share them.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...