Jump to content

Multiple methods for Multi-language datetime fields?


PWaddict
 Share

Recommended Posts

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"))) ?>

 

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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