Formatting date in a php smarty template
The date string can be formatted in a smarty template like this:
$payment.creation_date|date_format:"%d-%m-%Y"
where creation_date is an element of $payment array.
Possibly Related posts:
- To check in a smarty template if it was the last page of the page results
Here’s a method to check in a smarty template if it was the last page of page results. {if $listings.current_page gte ($listings.total / $results_per_page)|ceil} True... - To find mysql recodrs between specific date range based on start date and end date fields
While working on a report generation system i had to perform a query to check whether records exist in ‘reports’ table between a date range... - Clear template cache in x-cart
Have you been making changing into a smarty template file (within x-cart and perhaps independently as well) for long and the changes would not come... - Getting next day date in javascript
Here is an useful function to get next day’s date string in javascript. I am going to explain each line of code for those who... - Template drop down list missing in edit page in wordpress
Last night i installed a new theme to this blog of mine and after setting basic things up when i went to edit my archives...
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.





