コンテンツへスキップ

wemob

個人的なメモ

タグ: Smarty

Smartyの日付フォーマットのパディング削除

Posted on2016年8月14日 投稿者: admin

Smartyで変数に格納された日付を出力するときに挿入される、 0や空白などの余計なパディングを削除する方法です 😀

1
{$created|date_format:'%G.%m.%e'}

例えば上記の出力は、「2016.01. 1」のようになり… 続きを読む

カテゴリー:
  • 未分類
タグ: Smarty

最近の投稿

  • symfony4をアップロードする方法
  • ディレクトリ・リスティングされたファイルの一括ダウンロード
  • cronでwp-cliが動かない
  • wordpressのスラッグを自動で設定する
  • [email protected]にTensorFlowをインストールする

アーカイブ

  • 2018年6月
  • 2018年5月
  • 2018年2月
  • 2018年1月
  • 2017年12月
  • 2017年10月
  • 2017年9月
  • 2017年8月
  • 2017年7月
  • 2017年6月
  • 2017年5月
  • 2017年4月
  • 2017年3月
  • 2016年12月
  • 2016年11月
  • 2016年10月
  • 2016年9月
  • 2016年8月

カテゴリー

  • IT
  • ゲーム
  • 未分類
Proudly powered by WordPress | Theme: modernize by mismith227.

With Google+ plugin by Geoff Janes and Thorsten Hake