Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
smarty の日付形式について質問があります。
私は賢い変数を手に入れました: [{ $order->oxorder__oxorderdate->value }]
この変数は私に与えます: 2013-03-10 10:45:17
ここで、14 日を追加し、時刻を削除し、日付の形式を変更します。
だから私の願いは今これを手に入れることです:24.03.2013
これは可能ですか? smarty/.tpl ファイルで直接これを行うにはどうすればよいですか?
助けてくれてありがとう!
Smarty 3でテスト済み
{"$order->oxorder__oxorderdate->value +14 Days"|date_format:'d.m.Y'}