PWaddict Posted July 13, 2017 Share Posted July 13, 2017 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 More sharing options...
PWaddict Posted July 13, 2017 Author Share Posted July 13, 2017 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now