All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.journal.web.portlet.template.dependencies.date.ftl Maven / Gradle / Ivy

There is a newer version: 5.0.177
Show newest version
<#include "init.ftl">

<#if stringUtil.equals(language, "ftl")>
${r"<#assign"} ${name}_Data = getterUtil.getString(${variableName})>

${r"<#if"} validator.isNotNull(${name}_Data)>
	${r"<#assign"} ${name}_DateObj = dateUtil.parseDate("yyyy-MM-dd", ${name}_Data, locale)>

	${r"${"}dateUtil.getDate(${name}_DateObj, "dd MMM yyyy - HH:mm:ss", locale)}
${r""}
<#else>
#set ($${name}_Data = $getterUtil.getString($${variableName}))

#if ($validator.isNotNull($${name}_Data))
	#set ($${name}_DateObj = $dateUtil.parseDate("yyyy-MM-dd",$${name}_Data, $locale))

	$dateUtil.getDate($${name}_DateObj, "dd MMM yyyy - HH:mm:ss", $locale)
#end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy