When building a station with Phpcms V9, the time tag is often used, it is the universal tag call-date time format, applicable to the whole station.
1, Date time format display:
A\ Standard type: {date (' y-m-d h:i:s ', $rs [' Inputtime '])} output: 2013-01-31 13:15:10
B\ split: {date (' Y ', $rs [Inputtime]} year {date (' m ', $rs [Inputtime]} month {date (' d ', $rs [Inputtime])} Day output: January 31, 2013
C\ Extended Type:
{Date (' Y ', $inputtime);} 4-bit year output is: 2013 or 2014
{Date (' Y ', $inputtime);} 2-bit year output is: 10 or 11
{Date (' F ', $inputtime);} English month full name output is: January to December
{Date (' M ', $inputtime);} English month abbreviation output is: Jan to Dec
{date (' m ', $inputtime);} Leading 0 digit month output: 01 to 12
{Date (' n ', $inputtime);} Numeric month output: 1 to 12
{Date (' d ', $inputtime);} Leading 0-period output: 01 to 31
{Date (' J ', $inputtime);} The date output is: 1 to 31
{Date (' l ', $inputtime);} English week full name output: Sunday to Saturday
{Date (' D ', $inputtime);} English week abbreviation output is: Mon to Sun
{Date (' N ', $inputtime);} Format Numeric Week output: 1 to 7
{Date (' y-m-d h:i:s ', $rs [inputtime]+30*60)} Add some time after getting the article time
Source: http://blog.csdn.net/zsj523/article/details/21239273
Phpcms V9 Full Station universal Date Time label