Template Variables: Difference between revisions

Jump to navigation Jump to search
Andrian (talk | contribs)
Line 946: Line 946:


== Custom Date Format Variables ==
== Custom Date Format Variables ==
[DAYSBETWEEN:2019-11-01:2019-11-10] - this template variable will calculate the number of days between the :: the dates need to be in yyyy-mm-dd format. Template variables can be used for calculation.
Example:  [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check-in and today.
You can use  PHP strftime format strings to create custom time formats.  Information on PHP strftime strings is available at [http://php.net/manual/en/function.strftime.php]
You can use  PHP strftime format strings to create custom time formats.  Information on PHP strftime strings is available at [http://php.net/manual/en/function.strftime.php]