Skip to main content
Version: 2.17.x.x LTS

date

date:now

Date date:now()

Returns the current date.

#{date:now()}

date:parse

Date date:parse(String dateString, String format)

Parses the provided date string using the specified format. The format is defined in the syntax of Java‘s SimpleDateFormat class.

#{date:parse('20120313', 'yyyyMMdd')}

date:xml

XMLGregorianCalendar date:xml(Date date)

Converts a date to its XMLGregorianCalendar analog. It is used to convert dates for usage in web service calls such as the nevisIDM sink and source.

#{date:xml(in.user.validFrom)}

date:xmlDateOnly

XMLGregorianCalendar date:xmlDateOnly(Date date)

Converts a date to its XMLGregorianCalendar analog. It is used to convert dates for usage in web service calls such as the nevisIDM sink and source. This version ignores the time information and only uses the date information found in the Data object.

#{date:xmlDateOnly(in.user.birthDate)}