This shows you the differences between two versions of the page.

Link to this comparison view

how_do_i_format_a_date_time [2016/09/22 02:35] (current)
Line 1: Line 1:
 +===== Format Date/Time =====
 +The date/time can be formatted using the standard [[http://​docs.oracle.com/​javase/​7/​docs/​api/​java/​text/​SimpleDateFormat.html|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'​)"/>​
QR Code
QR Code how_do_i_format_a_date_time (generated for current page)