protected function createDate($date_string) {
    // Split from delimiter.
    $timestamp = explode('|', $date_string);

    $date = strtotime($timestamp[0]);
    $date = date('Y-m-d', $date) . 'T' . $timestamp[1] . ':00';

    return strtotime($date);
  }
protected function createDate($date_string) {
    // Split from delimiter.
    $timestamp = explode('|', $date_string);

    $date = strtotime($timestamp[0]);
    $date = date('Y-m-d', $date) . 'T' . $timestamp[1] . ':00';

    return strtotime($date);
  }
protected function createDate ( $ date_string ) { // Split from delimiter. $ timestamp = explode ( '|' , $ date_string ) ; $ date = strtotime ( $ timestamp [ 0 ] ) ; $ date = date ( 'Y-m-d' , $ date ) . 'T' . $ timestamp [ 1 ] . ':00' ; return strtotime ( $ date ) ; }
Converts a date in the correct format.

@param string $date_string
The date.

@return int|false
Returns a timestamp on success, false otherwise.
Converts a date in the correct format .