将现有的字符串日期转换为Y/m/d - Smarty

kar*_*ayi 1 php smarty

我有一个现有的日期,我想将其转换为(Y/m/d).我的约会电话已经是{$module_data.DATE}.我怎么转换它?

Gho*_*ler 5

{$module_data.DATE|date_format:"%Y/%m/%d"}
Run Code Online (Sandbox Code Playgroud)