karadayi
karadayi

Reputation: 2269

Convert existing String date into Y/m/d - Smarty

I have an existing Date which I want to convert to it as (Y/m/d). My Date call is already as {$module_data.DATE}. How can I convert it?

Upvotes: 1

Views: 958

Answers (1)

Ulrich Thomas Gabor
Ulrich Thomas Gabor

Reputation: 6654

{$module_data.DATE|date_format:"%Y/%m/%d"}

Upvotes: 5

Related Questions