function date_custom2unix in Date 5
2 calls to date_custom2unix()
- date_jscalendar_make_dbdate in ./
date.inc - Construct a value to save to the database from jscalendar input
- date_jscalendar_validate in ./
date.inc - Validation for jscalendar input
File
- ./
date.inc, line 1434 - Date/time API functions
Code
function date_custom2unix($date, $format) {
if ($iso = date_custom2iso($date, $format)) {
if ($unix = date_iso2unix($iso)) {
return $unix;
}
}
return 'ERROR';
}