個人用ツール

「ver4/関数リファレンス/getContentCreatedDate」の版間の差分

提供: baserCMS公式ガイド

移動: 案内, 検索
行15: 行15:
  
 
## 戻り値
 
## 戻り値
(string)
+
(null | string)
: コンテンツ作成日
+
: null または コンテンツ作成日
  
  

2018年12月21日 (金) 01:43時点における版

[このコンテンツは内容調整中です]

説明

コンテンツ作成日を取得する。

使い方

<?php $this->BcBaser->getContentCreatedDate([$format]); ?>

パラメータ

(string)$format
フォーマット
- 初期値: 'Y/m/d H:i'

戻り値

(null | string)
null または コンテンツ作成日

用例

基本

コンテンツ作成日を取得し、echoで出力する。

コード

<?php echo $this->BcBaser->getContentCreatedDate(); ?>

出力

2018/10/16 23:30

応用

コンテンツ作成日を指定した書式で取得し、echoで出力する。

コード

<?php echo $this->BcBaser->getContentCreatedDate('M. j. D'); ?>

出力

Oct. 16. Tue

類似の関数