static function datetime($var) { if (strtotime(modify::date_translate($var)) != 0) { return ""; } return "{t}Variable must be of type datetime (mm/dd/yyyy hh:mm am/pm).{/t}"; }