Пример #1
0
 public static function validateData(Nette\Forms\IControl $control)
 {
     return $control->validDate($control->year, $control->month, $control->day) && $control->validTime($control->hour, $control->minute);
 }
Пример #2
0
 public static function validateData(Nette\Forms\IControl $control)
 {
     return checkdate((int) $control->month, (int) $control->day, (int) $control->year) && $control->validTime($control->hour, $control->minute);
 }