public/lib/tps.php
/**
     * Check that param $date is formatted correctly to conform with ISO8601
     * date should not be datetime, just date.
     * @param string $date
     * @return bool
     */
Check that param $date is formatted correctly to conform with ISO8601
date should not be datetime, just date.
@param string $date
@return bool
Check that param $date is formatted correctly to conform with ISO8601 date should not be datetime just date . @param string $date @return bool
public static function validateIsoDate($date)
    {
        $d = \DateTime::createFromFormat('Y-m-d', $date);
        return $d && $d->format('Y-m-d') == $date;
    }
public static function validateIsoDate ( $ date ) { $ d = \ DateTime :: createFromFormat ( 'Y-m-d' , $ date ) ; return $ d && $ d -> format ( 'Y-m-d' ) == $ date ; }
Check that param $date is formatted correctly to conform with ISO8601
 date should not be datetime, just date.
Check that param $date is formatted correctly to conform with ISO8601 date should not be datetime just date .