#set ($userLocalService= $serviceLocator.findService("com.liferay.portal.kernel.service.UserLocalService"))
#set ($user = $userLocalService.getUserById($permissionChecker.getUserId()))
## get Locale EN object
#set ($localeEn = $localeUtil.fromLanguageId("en_US"))
## get Date object
#set ($pubDate1 = $dateTool.toDate("EEE., dd MMM. yyyy hh:mm:ss Z" , $reserved-article-display-date.data, $localeEn))
#set ($pubDate2 = $dateTool.toDate("EEE., dd MMM yyyy hh:mm:ss Z" , $reserved-article-display-date.data, $localeEn))
## get formated Date
#set ($dateFormat = "MMMM d, yyyy")
#if ($locale.toString().contains("pl"))
#set ($dateFormat = "dd MMMM yyyy")
#end
#set ($timeZone = $timeZoneUtil.getTimeZone($user.getTimeZoneId()))
## get format Date
#set ($pubDateFormat1 = $dateTool.format($dateFormat,$pubDate1,$locale,$timeZone))
#set ($pubDateFormat2 = $dateTool.format($dateFormat,$pubDate2,$locale,$timeZone))
#if ($pubDateFormat1)
#set ($pubDateFormat = $pubDateFormat1)
#end
#if ($pubDateFormat2)
#set ($pubDateFormat = $pubDateFormat2)
#end
#set ($pubDateFormat1 = $dateTool.format($dateFormat,$pubDate1,$locale))
#set ($pubDateFormat2 = $dateTool.format($dateFormat,$pubDate2,$locale))
#if ($pubDateFormat1)
#set ($pubDateFormat = $pubDateFormat1)
#end
#if ($pubDateFormat2)
#set ($pubDateFormat = $pubDateFormat2)
#end
#set ( $cdnCgiPath = "https://www-cdn01.avisonyoung.com/cdn-cgi/image/fit=cover,width=50,height=50,q=100" )
$pubDateFormat
#if($validator.isNotNull($Image.getData()))
#set( $imgThumb=$cdnCgiPath+"/"+$Image.getData() )
#else
#if( $validator.isNotNull($PDF.getData()) )
#set( $docThumb=$cdnCgiPath+"/"+$PDF.getData()+"?documentThumbnail=1" )
#end
#end