v:format.dateRange

raw

input.html

1
<v:format.dateRange start="2016-05-22" end="2017-02-18" return="d"/>
raw

output.txt

object(DateInterval)[1300]
  public 'y' => int 0
  public 'm' => int 8
  public 'd' => int 27
  public 'h' => int 0
  public 'i' => int 0
  public 's' => int 0
  public 'weekday' => int 0
  public 'weekday_behavior' => int 0
  public 'first_last_day_of' => int 0
  public 'invert' => int 1
  public 'days' => int 272
  public 'special_type' => int 0
  public 'special_amount' => int 0
  public 'have_weekday_relative' => int 0
  public 'have_special_relative' => int 0
raw

solution.txt

use "a" as "return" value

See http://php.net/manual/en/dateinterval.format.php
Christian Weiske Christian Weiske
owner

History