cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists

CALENDARDAYS{...} -- calculate calendar days

  • Calculates the number of calendar days between two dates
  • Syntax: %CALENDARDAYS{startdate="date|$variable" enddate="date|$variable" includestart="on|off" includeend="on|off"}%
  • Supported parameters:
    Parameter: Description: Default:
    startdate="date" date can be in any format defined in System/TimeSpecifications (time is ignorred), or it can be the name of a TimeCalcPlugin storage name prefixed by a '$'. E.g. $myvar today
    enddate="date" date can be in any format defined in System/TimeSpecifications (time is ignorred), or it can be the name of a TimeCalcPlugin storage name prefixed by a '$'. E.g. $myvar today
    includestart="on or off" Include the start date in the calculation "off"
    includeend="on or off" Include the end date in the calculation "on"
  • Example: %CALENDARDAYS{startdate="23 Nov 2010" enddate="10 Jan 2011"}%
  • This macro accepts TimeCalcPlugin storage variables as input dates but it cannot store any values because the result is not a date.
Topic revision: r2 - 16 Aug 2015, KennethLavrsen - This page was cached on 22 Jun 2018 - 19:07.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy