Umbraco/参考/umbraco.library/LongDate
外观
该方法用于从 Umbraco 的 XML 中获取并返回格式化的日期。
参数
LongDate(String date);
或
LongDate(String date, bool includeTime, String separator);
String date - date from Umbraco XML. Boolean includeTime - include the time as well as the date. String separator - character(s) to separate date and time components.
返回值
该方法返回一个字符串,格式为
22 April 2006 18:43:00
用法
<xsl:value-of select="umbraco.library:LongDate(data[@alias='PublishDate']/text(), 1, ' ')"/>