Lines Matching +full:validation +full:exception +full:invalid +full:date +full:format +(+path:plugin +path:struct) -(+path:plugin +path:struct +path:lang)
10 class DateTime extends Date
13 'format' => '', // filled by constructor
30 $this->config['format'] = DateFormatConverter::toDate($conf['dformat']);
47 $rawvalue = date('Y-m-d\TH:i');
64 * This function needs to throw a validation exception when validation fails.
65 * The exception message will be prefixed by the appropriate field on output
74 [$date, $time] = array_pad(preg_split('/[ |T]/', $rawvalue, 2), 2, '');
75 $date = trim($date);
78 [$year, $month, $day] = explode('-', $date, 3);
80 throw new ValidationException('invalid datetime format');
93 throw new ValidationException('invalid datetime format');