An error occurred while processing the template.
Java method "com.liferay.portal.kernel.util.DateUtil_IW.parseDate(String, String, Locale)" threw an exception when invoked on com.liferay.portal.kernel.util.DateUtil_IW object "com.liferay.portal.kernel.util.DateUtil_IW@e996224"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign dateFromObj = dateUtil.parseD...  [in template "20116#20152#37589" in function "getDateTo" at line 199, column 25]
	- Reached through: #assign eventFile = "BEGIN:VCALENDAR\...  [in template "20116#20152#37589" in function "getEventFile" at line 130, column 5]
	- Reached through: #assign VOID = freeMarkerPortletPrefe...  [in template "20116#20152#37589" at line 48, column 65]
----
1<#setting locale=locale?string> 
2 
3<div class="xsection-content pb-4"> 
4	<!--Article Header--> 
5	<div class="xcol p-3"> 
6		<div class="xcol xcol-lg-8"> 
7			<div class="xcontent pb-3"> 
8				<h1 class="t-title-1">${title.getData()}</h1> 
9			</div> 
10		</div> 
11	</div> 
12	<!--Content Block--> 
13	<div class="xcol xcontent-block pv-3"> 
14		<div class="xcol xcol-md-4"> 
15			<div class="xcontent p-3 pt-0"> 
16				<h3 class="t-title-5">Dátum a čas</h3> 
17				<dl class="t-body"> 
18					<#assign dateFrom_Data = getterUtil.getString(dateFrom.getData())> 
19					<#assign dateTo_Data = getterUtil.getString(dateTo.getData())>	 
20					<#assign timeFrom_Data = getterUtil.getString(timeFrom.getData())> 
21					<#assign timeTo_Data = getterUtil.getString(timeTo.getData())>	 
22 
23					<#if validator.isNotNull(dateFrom_Data) || validator.isNotNull(dateTo_Data)> 
24						<dd>${dateRange(dateFrom_Data,dateTo_Data)}</dd> 
25					</#if>	 
26					<#if validator.isNotNull(timeFrom_Data) && (timeFrom_Data?length>0)> 
27						<#assign timeFromObj = timeFrom_Data?time("HH:mm")> 
28						<#if validator.isNotNull(timeTo_Data) && (timeTo_Data?length>0)>	 
29							<#assign timeToObj = timeTo_Data?time("HH:mm")> 
30						</#if> 
31						<#if timeToObj??> 
32							<dd>${timeFromObj?string("H.mm")+"&nbsp;&#8212;&nbsp;"+timeToObj?string("H.mm")+" h"}</dd>			 
33						<#else> 
34							<dd>${timeFromObj?string("H.mm")+" h"}</dd>			 
35						</#if>	 
36					</#if> 
37					<ul class="add-to-cal t-body"> 
38						  <li class="cal-select tc-b">Pridať do kalendára</li> 
39						  <li> 
40							<ul class="cal-list"> 
41							  <li class="cal-item"><@link_to_google_calendar/></li> 
42							  <li class="cal-item"><@link_to_outlook_calendar/></li> 
43							  <li class="cal-item"> 
44								<#assign journalArticleId = .vars['reserved-article-id'].data/> 
45								<#assign instanceID = "iCal" + "0000" + journalArticleId/> 
46								<#assign VOID = freeMarkerPortletPreferences.setValue("displayStyle", "eZdravie")> 
47								<#assign VOID = freeMarkerPortletPreferences.setValue("displayStyleGroupId", themeDisplay.getCompanyGroupId()?string)> 
48								<#assign VOID = freeMarkerPortletPreferences.setValue("eventFile", getEventFile())> 
49						 
50								<@liferay_portlet["runtime"] 
51									defaultPreferences="${freeMarkerPortletPreferences}" 
52									instanceId=instanceID 
53									portletName="ICalEventPortlet" 
54								/> 
55						 
56								<#assign VOID = freeMarkerPortletPreferences.reset()> 
57							  </li> 
58							   
59							  <li class="cal-item"><@link_to_yahoo_calendar/></li> 
60							</ul> 
61						  </li> 
62					</ul> 
63				</dl> 
64			</div> 
65			<div class="xcontent p-3 pt-0"> 
66				<h3 class="t-title-5">Miesto konania</h3> 
67				<dl class="t-body"> 
68					<#if validator.isNotNull(location.getData())> 
69						<#if location.getSiblings()?has_content> 
70							<#list location.getSiblings() as cur_location> 
71								<dd>${cur_location.getData()}</dd> 
72							</#list>	 
73						</#if>	 
74					</#if>	 
75					<#if validator.isNotNull(streetName.getData())> 
76						<dd>${streetName.getData()} <#if validator.isNotNull(streetNumber.getData())>${streetNumber.getData()}</#if></dd> 
77					</#if> 
78					<#if validator.isNotNull(zipCode.getData()) || validator.isNotNull(city.getData())> 
79						<dd><#if validator.isNotNull(zipCode.getData())>${zipCode.getData()}</#if> <#if validator.isNotNull(city.getData())>${city.getData()}</#if></dd> 
80					</#if> 
81					<#if validator.isNotNull(country.getData())>		 
82						<dd>${country.getData()}</dd> 
83					</#if> 
84					<dd><@link_to_map/></dd> 
85				</dl> 
86			</div> 
87		</div> 
88		<div class="xcol xcol-md-8"> 
89			<div class="xcontent ph-3"> 
90				<#-- 
91				<#if validator.isNotNull(title.getData())> 
92					<h2 class="t-title-2">${title.getData()}</h2> 
93				</#if>	 
94				--> 
95				<#if validator.isNotNull(text.getData())> 
96					<p class="t-body">${text.getData()}</p> 
97				</#if>	 
98			</div> 
99		</div> 
100	</div> 
101	<!--Media Gallery--> 
102    <#assign journalArticleId = .vars['reserved-article-id'].data/> 
103    <#assign instanceId = "gallery_" + "0000" + journalArticleId/> 
104     
105	<!-- vymazanie vsetkych preferences pre instanciu embedded portletu  --> 
106	<#assign ppu = objectUtil("com.liferay.portal.kernel.service.persistence.PortletPreferencesUtil") /> 
107	<#assign portletId = "com_liferay_document_library_web_portlet_IGDisplayPortlet_INSTANCE_"+instanceId> 
108	<#assign VOID = ppu.removeByPortletId(portletId)> 
109	 
110	<#if folderID?? && folderID.getData()?has_content> 
111		<#assign folder= folderID.getData()?keep_after("/")?keep_after("/")?keep_after("/")?keep_before("/")/> 
112		<#assign VOID = freeMarkerPortletPreferences.setValue("rootFolderId", folder)> 
113		<#assign VOID = freeMarkerPortletPreferences.setValue("displayStyle", "ddmTemplate_127133")> 
114		<#assign VOID = freeMarkerPortletPreferences.setValues("mimeTypes", ["image/bmp","image/gif","image/jpeg","image/pjpeg","image/png","image/svg+xml","image/tiff","image/x-citrix-jpeg","image/x-citrix-png","image/x-ms-bmp","image/x-png","image/x-tiff"])> 
115				 
116		<@liferay_portlet["runtime"] 
117				defaultPreferences="${freeMarkerPortletPreferences}" 
118				portletProviderAction=portletProviderAction.VIEW 
119				instanceId=instanceId 
120				portletName="com_liferay_document_library_web_portlet_IGDisplayPortlet" 
121		/> 
122		<#assign VOID = freeMarkerPortletPreferences.reset()> 
123	</#if>	 
124</div> 
125 
126<#----------------------------------------------> 
127<#-- function: getEventFile                   --> 
128<#---------------------------------------------->		 
129<#function getEventFile> 
130    <#assign eventFile = "BEGIN:VCALENDAR\r\n" +  
131		"PRODID:Calendar\r\n" + 
132		"VERSION:2.0\r\n" +  
133		"BEGIN:VEVENT\r\n" +  
134		"DTSTAMP:20180731T000000Z\r\n" +  
135		"STATUS:CONFIRMED\r\n" +  
136		"UID:1533031177ezdravotnictvo\r\n" +  
137		"DTSTART:" + getDateFrom() + "\r\n" +  
138		"DTEND:" + getDateTo() + "\r\n" +  
139		"SUMMARY:" + title.getData() + "\r\n" +  
140		"DESCRIPTION:\r\n" +  
141		"LOCATION:" + getAddress() + "\r\n" +  
142		"TRANSP:OPAQUE\r\n" +  
143		"END:VEVENT\r\n" +  
144		"END:VCALENDAR\r\n"> 
145    <#return eventFile> 
146</#function> 
147 
148<#----------------------------------------------> 
149<#-- function: getDateFrom                    --> 
150<#---------------------------------------------->		 
151<#function getDateFrom> 
152	<#assign dateFrom = "" /> 
153	 
154	<#if validator.isNotNull(dateFrom_Data)> 
155 
156		<#-- date from --> 
157		<#assign dateFromObj = dateUtil.parseDate("yyyy-MM-dd", dateFrom_Data, locale)> 
158		<#assign dateFrom += dateFromObj?string("yyyyMMdd")/> 
159		 
160		<#-- time from --> 
161		<#if validator.isNotNull(timeFrom.getData())> 
162			<#assign dateFrom += "T" /> 
163			<#assign timeFromObj = timeFrom.getData()?time("HH:mm")>	 
164			<#assign dateFrom += timeFromObj?string("HHmmss")/> 
165		<#else> 
166			<#assign dateFrom += "T010000" /> 
167		</#if> 
168	</#if> 
169	<#return dateFrom> 
170</#function> 
171 
172<#----------------------------------------------> 
173<#-- function: getDateTo                      --> 
174<#---------------------------------------------->		 
175<#function getDateTo> 
176	<#assign dateTo = "" />	 
177		<#-- date to --> 
178		<#if validator.isNotNull(dateTo_Data)> 
179			<#assign dateTo = "" /> 
180			<#assign dateToObj = dateUtil.parseDate("yyyy-MM-dd", dateTo_Data, locale)> 
181			<#assign dateTo += dateToObj?string("yyyyMMdd") /> 
182			 
183			<#-- time to -->			 
184			<#if validator.isNotNull(timeTo.getData())> 
185				<#assign dateTo += "T" /> 
186				<#assign timeToObj = timeTo.getData()?time("HH:mm")>	 
187				<#assign dateTo += timeToObj?string("HHmmss")/> 
188			<#else> 
189				<#if validator.isNotNull(timeFrom.getData())> 
190					<#assign dateTo += "T" /> 
191					<#assign timeFromObj = timeFrom.getData()?time("HH:mm")>	 
192					<#assign dateTo += timeFromObj?string("HHmmss")/> 
193				<#else> 
194					<#assign dateTo += "T010000" />	 
195				</#if> 
196			</#if>			 
197		<#else> 
198			<#assign dateTo = "" /> 
199			<#assign dateFromObj = dateUtil.parseDate("yyyy-MM-dd", dateFrom_Data, locale)> 
200			<#assign dateTo += dateFromObj?string("yyyyMMdd")/> 
201			<#-- time to -->			 
202			<#if validator.isNotNull(timeTo.getData())> 
203				<#assign dateTo += "T" /> 
204				<#assign timeToObj = timeTo.getData()?time("HH:mm")>	 
205				<#assign dateTo += timeToObj?string("HHmmss")/> 
206			<#else> 
207				<#if validator.isNotNull(timeFrom.getData())> 
208					<#assign dateTo += "T" /> 
209					<#assign timeFromObj = timeFrom.getData()?time("HH:mm")>	 
210					<#assign dateTo += timeFromObj?string("HHmmss")/> 
211				<#else> 
212					<#assign dateTo += "T010000" />	 
213				</#if> 
214			</#if>	 
215		</#if>	 
216	<#return dateTo> 
217</#function> 
218 
219<#----------------------------------------------> 
220<#-- macro: link to map                       --> 
221<#----------------------------------------------> 
222<#macro link_to_map> 
223	<#assign mapUrl = "http://maps.apple.com/?" /> 
224	 
225	<#-- pozicia je urcena pomocou zemepisnych suradnic --> 
226	<#if validator.isNotNull(useCoordinates.getData()) && getterUtil.getBoolean(useCoordinates.getData())> 
227		<#if validator.isNotNull(useCoordinates.latitude.getData()) 
228		     && (useCoordinates.latitude.getData()?trim?length gt 0) 
229			 && validator.isNotNull(useCoordinates.longitude.getData()) 
230			 && (useCoordinates.longitude.getData()?trim?length gt 0) 
231
232			<#assign mapUrl += "q=${useCoordinates.latitude.getData()?trim},${useCoordinates.longitude.getData()?trim}" /> 
233		</#if> 
234	 
235	<#-- pozicia je urcena pomocou adresy --> 
236	<#else> 
237		<#assign addressData = getAddress()>		 
238		<#if addressData?length gt 0> 
239			<#assign mapUrl += "address=${addressData}" /> 
240		</#if>	 
241	</#if> 
242	<a href="${mapUrl}" class="tc-b">Zobraziť na mape</a> 
243</#macro> 
244 
245<#----------------------------------------------> 
246<#-- macro: link to Yahoo calendar 				  --> 
247<#----------------------------------------------> 
248<#macro link_to_yahoo_calendar> 
249	<#assign returnUrl="http://calendar.yahoo.com/?v=60" /> 
250	 
251	<#-----------------------> 
252	<#-- add name of event --> 
253	 
254	<#if validator.isNotNull(title.getData())> 
255		<#assign partNameOfEvent = "&title="/> 
256		<#assign partNameOfEvent += htmlUtil.escape(title.getData()) /> 
257		 
258		<#assign returnUrl += partNameOfEvent> 
259	</#if> 
260	 
261	<#-----------------------> 
262	<#-- add date/time     --> 
263	<#if validator.isNotNull(dateFrom_Data)> 
264		<#assign partDateOfEvent = "" /> 
265		 
266		<#-- date from --> 
267		<#assign dateFromObj = dateUtil.parseDate("yyyy-MM-dd", dateFrom_Data, locale)> 
268		<#assign partDateOfEvent += dateFromObj?string("yyyyMMdd") /> 
269		 
270		<#-- time from --> 
271		<#if validator.isNotNull(timeFrom.getData())> 
272			<#assign partDateOfEvent += "T" /> 
273			<#assign timeFromObj = timeFrom.getData()?time("HH:mm")>	 
274			<#assign partDateOfEvent += timeFromObj?string("HHmmss") /> 
275		<#else>	 
276			<#assign partDateOfEvent += "T000000" /> 
277		</#if> 
278		<#assign dateFrom = partDateOfEvent> 
279		<#assign returnUrl += "&st=" + partDateOfEvent> 
280		 
281		<#-- date to --> 
282		<#if validator.isNotNull(dateTo_Data)> 
283			<#assign dateToObj = dateUtil.parseDate("yyyy-MM-dd", dateTo_Data, locale)> 
284			<#assign dateTo = dateToObj?string("yyyyMMdd") /> 
285			 
286			<#-- time to -->			 
287			<#if validator.isNotNull(timeTo.getData())> 
288				<#assign dateTo += "T" /> 
289				<#assign timeToObj = timeTo.getData()?time("HH:mm")>	 
290				<#assign dateTo += timeToObj?string("HHmmss") /> 
291			<#elseif validator.isNotNull(timeFrom.getData())> 
292				<#assign dateTo += "T" /> 
293				<#assign timeFromObj = timeFrom.getData()?time("HH:mm")>	 
294				<#assign dateTo += timeFromObj?string("HHmmss") /> 
295			</#if> 
296			<#if validator.isNotNull(timeTo.getData()) && validator.isNotNull(timeFrom.getData())> 
297				<#assign returnUrl += "&dur=" + ((dateTo?datetime("yyyyMMdd'T'HHmmss")?long 
298												- dateFrom?datetime("yyyyMMdd'T'HHmmss")?long) / (10 * 60 * 60))?c>	 
299			</#if>											 
300		<#else>	 
301			<#assign returnUrl += "&dur=0000">	 
302		</#if> 
303	</#if> 
304	 
305	<#-----------------------> 
306	<#-- add location      --> 
307	<#assign addressData = getAddress()> 
308	<#if validator.isNotNull(location.getData())> 
309		<#assign returnUrl += "&in_loc=" + location.getData() + "," + addressData> 
310	</#if> 
311	 
312	<#if validator.isNotNull(streetName.getData())> 
313		<#assign returnUrl += "&in_st=" + streetName.getData()> 
314	</#if> 
315	 
316	<#assign addressData = city.getData() + country.getData() + zipCode.getData()>		 
317	<#if addressData?length gt 0> 
318		<#assign returnUrl += "&in_csz=" + addressData> 
319	</#if> 
320		 
321	<a href="${returnUrl}" class="tc-b">Yahoo kalendár</a> 
322</#macro> 
323 
324<#----------------------------------------------> 
325<#-- macro: link to Google calendar 				  --> 
326<#----------------------------------------------> 
327<#macro link_to_google_calendar> 
328	<#assign returnUrl="https://www.google.com/calendar/render?action=TEMPLATE" /> 
329	 
330	<#-----------------------> 
331	<#-- add name of event --> 
332	 
333	<#if validator.isNotNull(title.getData())> 
334		<#assign partNameOfEvent = "&text="/> 
335		<#assign partNameOfEvent += htmlUtil.escape(title.getData()) /> 
336		 
337		<#assign returnUrl += partNameOfEvent> 
338	</#if> 
339	 
340	<#-----------------------> 
341	<#-- add date/time     --> 
342	<#if validator.isNotNull(dateFrom_Data)> 
343		<#assign partDateOfEvent = "" /> 
344		 
345		<#-- date from --> 
346		<#assign dateFromObj = dateUtil.parseDate("yyyy-MM-dd", dateFrom_Data, locale)> 
347		<#assign partDateOfEvent += dateFromObj?string("yyyyMMdd") /> 
348		 
349		<#-- time from --> 
350		<#if validator.isNotNull(timeFrom_Data)> 
351			<#assign partDateOfEvent += "T" /> 
352			<#assign timeFromObj = timeFrom_Data?time("HH:mm")>	 
353			<#assign partDateOfEvent += timeFromObj?string("HHmmss") /> 
354		<#else>	 
355			<#assign partDateOfEvent += "T000000" /> 
356		</#if> 
357	 
358		<#-- date to --> 
359		<#if validator.isNotNull(dateTo_Data)> 
360			<#assign partDateOfEvent += "/" /> 
361			<#assign dateToObj = dateUtil.parseDate("yyyy-MM-dd", dateTo_Data, locale)> 
362			<#assign partDateOfEvent += dateToObj?string("yyyyMMdd") /> 
363			 
364			<#-- time to -->			 
365			<#if validator.isNotNull(timeTo_Data)> 
366				<#assign partDateOfEvent += "T" /> 
367				<#assign timeToObj = timeTo_Data?time("HH:mm")>	 
368				<#assign partDateOfEvent += timeToObj?string("HHmmss") /> 
369			<#elseif validator.isNotNull(timeFrom_Data)> 
370				<#assign partDateOfEvent += "T" /> 
371				<#assign timeFromObj = timeFrom_Data?time("HH:mm")>	 
372				<#assign partDateOfEvent += timeFromObj?string("HHmmss") /> 
373			<#else>	 
374				<#assign partDateOfEvent += "T000000" />	 
375			</#if>			 
376		<#else> 
377			<#assign partDateOfEvent += "/" /> 
378			<#assign partDateOfEvent += dateFromObj?string("yyyyMMdd") /> 
379			 
380			<#-- time to -->			 
381			<#if validator.isNotNull(timeTo_Data)> 
382				<#assign partDateOfEvent += "T" /> 
383				<#assign timeToObj = timeTo_Data?time("HH:mm")>	 
384				<#assign partDateOfEvent += timeToObj?string("HHmmss") /> 
385			<#elseif validator.isNotNull(timeFrom_Data)> 
386				<#assign partDateOfEvent += "T" /> 
387				<#assign timeFromObj = timeFrom_Data?time("HH:mm")>	 
388				<#assign partDateOfEvent += timeFromObj?string("HHmmss") /> 
389			<#else>	 
390				<#assign partDateOfEvent += "T000000" />	 
391			</#if>				 
392		</#if> 
393		 
394		<#assign returnUrl += "&dates=" + partDateOfEvent> 
395	</#if> 
396	 
397	<#-----------------------> 
398	<#-- add location      --> 
399	<#assign addressData = getAddress()>		 
400	<#if addressData?length gt 0> 
401		<#assign returnUrl += "&location=" + addressData> 
402	</#if> 
403	 
404	<#-----------------------> 
405	<#-- add time zone     --> 
406	<#assign returnUrl += "&ctz=" + timeZoneUtil.getDefault().getID()>	 
407	 
408	<a href="${returnUrl}" class="tc-b">Google kalendár</a> 
409</#macro> 
410 
411<#----------------------------------------------> 
412<#-- macro: link to Outlook calendar 		  --> 
413<#----------------------------------------------> 
414<#macro link_to_outlook_calendar> 
415	<#assign returnUrl="https://outlook.live.com/owa/?path=/calendar/action/compose&rru=addevent" /> 
416	 
417	<#-----------------------> 
418	<#-- add name of event --> 
419	 
420	<#if validator.isNotNull(title.getData())> 
421		<#assign partNameOfEvent = "&subject="/> 
422		<#assign partNameOfEvent += htmlUtil.escape(title.getData()) /> 
423		 
424		<#assign returnUrl += partNameOfEvent> 
425	</#if> 
426	 
427	<#-----------------------> 
428	<#-- add date/time     --> 
429	<#if validator.isNotNull(dateFrom_Data)> 
430		<#assign dateFrom = "" /> 
431		 
432		<#-- date from --> 
433		<#assign dateFromObj = dateUtil.parseDate("yyyy-MM-dd", dateFrom_Data, locale)> 
434		<#assign dateFrom += dateFromObj?string("yyyy-MM-dd")/> 
435		 
436		<#-- time from --> 
437		<#if validator.isNotNull(timeFrom.getData())> 
438			<#assign dateFrom += "T" /> 
439			<#assign timeFromObj = timeFrom.getData()?time("HH:mm")>	 
440			<#assign dateFrom += timeFromObj?string("HH:mm:ss") /> 
441		<#else>	 
442			<#assign dateFrom += "T00:00:00" /> 
443		</#if> 
444			<#assign dateFrom += "+00:00" /> 
445			<#assign returnUrl += "&startdt=" + dateFrom> 
446	 
447		<#-- date to --> 
448		<#if validator.isNotNull(dateTo_Data)> 
449			<#assign dateTo = "" /> 
450			<#assign dateToObj = dateUtil.parseDate("yyyy-MM-dd", dateTo_Data, locale)> 
451			<#assign dateTo += dateToObj?string("yyyy-MM-dd") /> 
452			 
453			<#-- time to -->			 
454			<#if validator.isNotNull(timeTo.getData())> 
455				<#assign dateTo += "T" /> 
456				<#assign timeToObj = timeTo.getData()?time("HH:mm")>	 
457				<#assign dateTo += timeToObj?string("HH:mm:ss") /> 
458			<#elseif validator.isNotNull(timeFrom.getData())> 
459				<#assign dateTo += "T" /> 
460				<#assign timeFromObj = timeFrom.getData()?time("HH:mm")>	 
461				<#assign dateTo += timeFromObj?string("HH:mm:ss") /> 
462			<#else>	 
463				<#assign dateTo += "T00:00:00" /> 
464			</#if>	 
465			<#assign dateTo += "+00:00" /> 
466			<#assign returnUrl += "&enddt=" + dateTo>			 
467		<#else> 
468			<#assign returnUrl += "&enddt=" + dateFrom> 
469		</#if> 
470	</#if> 
471	 
472	<#-----------------------> 
473	<#-- add location      --> 
474	<#assign addressData = getAddress()>		 
475	<#if addressData?length gt 0> 
476		<#assign returnUrl += "&location=" + location.getData() + "," + addressData> 
477	</#if> 
478		 
479	<a href="${returnUrl}" class="tc-b" target="_blank">Outlook kalendár</a> 
480</#macro> 
481 
482<#----------------------------------------------> 
483<#-- function: getAddress                     --> 
484<#----------------------------------------------> 
485<#function getAddress> 
486	<#assign retVal = ""> 
487	 
488	<#if validator.isNotNull(streetNumber.getData()) && (streetNumber.getData()?trim?length gt 0)> 
489		<#if retVal?length gt 0> 
490			<#assign retVal += ","> 
491		</#if>	 
492		<#assign retVal += "${streetNumber.getData()?trim}"> 
493	</#if> 
494	<#-- street name --> 
495	<#if validator.isNotNull(streetName.getData()) && (streetName.getData()?trim?length gt 0)> 
496		<#if retVal?length gt 0> 
497			<#assign retVal += ","> 
498		</#if>	 
499		<#assign retVal += "${streetName.getData()?trim}"> 
500	</#if> 
501	<#-- city --> 
502	<#if validator.isNotNull(city.getData()) && (city.getData()?trim?length gt 0)> 
503		<#if retVal?length gt 0> 
504			<#assign retVal += ","> 
505		</#if>	 
506		<#assign retVal += "${city.getData()?trim}"> 
507	</#if> 
508	<#-- country --> 
509	<#if validator.isNotNull(country.getData()) && (country.getData()?trim?length gt 0)> 
510		<#if retVal?length gt 0> 
511			<#assign retVal += ","> 
512		</#if>	 
513		<#assign retVal += "${country.getData()?trim}"> 
514	</#if> 
515	 
516	<#return retVal> 
517</#function> 
518 
519<#----------------------------------------------> 
520<#-- function: date range as string 		  --> 
521<#----------------------------------------------> 
522<#function dateRange dateFrom dateTo=""> 
523    <#assign rangeDate = ""> 
524     
525    <#assign dateFromObj = dateUtil.parseDate("yyyy-MM-dd", dateFrom, locale)> 
526 
527    <#assign dayFrom = dateFromObj?string('dd')> 
528    <#assign monthFrom = dateFromObj?string('MM')> 
529    <#assign yearFrom = dateFromObj?string('yyyy')> 
530 
531    <#if dateTo?has_content> 
532        <#assign dateToObj = dateUtil.parseDate("yyyy-MM-dd", dateTo, locale)> 
533        <#assign dayTo = dateToObj?string('dd')> 
534        <#assign monthTo = dateToObj?string('MM')> 
535        <#assign yearTo = dateToObj?string('yyyy')> 
536 
537		<#if (monthFrom?number == monthTo?number)> 
538			<#assign rangeDate += dayFrom + ". &#8212 " + dayTo + ". "+ dateFromObj?string('MMMM') + " " + yearFrom> 
539		<#elseif (monthFrom?number &gt; monthTo?number)> 
540			<#assign rangeDate += dayFrom + ". " + dateFromObj?string('MMMM') + " " + yearFrom + " &#8212 " + dayTo + ". " + dateToObj?string('MMMM') + " " + yearTo> 
541		<#elseif (monthFrom?number &lt; monthTo?number)> 
542			<#assign rangeDate += dayFrom + ". " + dateFromObj?string('MMMM') + " &#8212 " + dayTo + ". " + dateToObj?string('MMMM') + " " + yearFrom> 
543		</#if> 
544    <#else> 
545       <#assign rangeDate += dayFrom + ". " + dateFromObj?string('MMMM') + " " + yearFrom> 
546    </#if> 
547 
548    <#return rangeDate> 
549</#function>