Differences

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

Link to this comparison view

how_do_i_get_a_date_n_days_from_today [2016/09/22 02:35] (current)
Line 1: Line 1:
 +===== How to Get A Date String for a Specific Date =====
  
 +You can specify a delta when you call $date() or $time() methods. See following examples:
 +
 +   <​log msg="2 days from today is: $date('​+2D'​)"​ />
 +   <​log msg="2 days prior to today is: $date('​-2D'​)"​ />
 +   <​log msg="1 week from today is: $date('​+1W'​)"​ />
 +   <​log msg="2 months from today is: $date('​+2M'​)"​ />
 +   <​log msg="3 years from today is: $date('​+3Y'​)"​ />
 +
 +   <​log msg="2 hours from now is: $time('​+2H'​)"​ />
 +   <​log msg="2 hours prior to now is: $time('​-2H'​)"​ />
 +   <​log msg="​30 minutes from now is: $time('​+30M'​)"​ />
 +   <​log msg="​15 minutes prior to now is: $time('​-15M'​)"​ />
Print/export
QR Code
QR Code how_do_i_get_a_date_n_days_from_today (generated for current page)