Liferay 6.2 => Code how date field value into template
Create an 'date1' field as ddm-date type field into structure:
#set( $subDate = $date1.getData())
#set($day = $dateUtil.getDate($dateUtil.newDate($mathTool.toNumber($subDate)), "dd-MM-yyyy", $locale))
Date is: $day
Create an 'date1' field as ddm-date type field into structure:
#set( $subDate = $date1.getData())
#set($day = $dateUtil.getDate($dateUtil.newDate($mathTool.toNumber($subDate)), "dd-MM-yyyy", $locale))
Date is: $day
No comments:
Post a Comment