Дата из строки в timestamp
/**
* Format string to Unix time
* @param $strDate string
* @return int|bool timestamp or false
*/
protected function formatDate($strDate)
{
if (!$strDate) {
return false;
}
$timestamp = "";
if (($timestamp = strtotime($strDate)) === false) {
return false;
}
return $timestamp;
}