Format Date/Time

The date/time can be formatted using the standard java date format syntax.

Below are a few examples:

  <log msg="$date('today', 'MM-dd-yyyy')"/>
  <log msg="$date('tomorrow', 'MM/dd/yy')"/>
  <log msg="$date('+2D', 'yyyy-MM-dd)"/>
  <log msg="$time('now', 'MM/dd/yyyy HH:mm')"/>
  <log msg="$time('+2H', 'HH:mm')"/>
  <log msg="$time('-10M', 'HH:mm:ss')"/>
Print/export
QR Code
QR Code how_do_i_format_a_date_time (generated for current page)