src/POData/Providers/Metadata/Type/DateTime.php
/**
     * Checks a value is valid datetime
     * 
     * @param string $dateTime value to validate. 
     * 
     * @return boolean
     */
Checks a value is valid datetime

@param string $dateTime value to validate.

@return boolean
Checks a value is valid datetime @param string $dateTime value to validate . @return boolean
public static function validateWithoutPreFix($dateTime)
    {
        try {
                $dt = new \DateTime($dateTime, new \DateTimeZone('UTC'));
        } catch (\Exception $e) {
                return false;
        }
        return true;
    }
public static function validateWithoutPreFix ( $ dateTime ) { try { $ dt = new \ DateTime ( $ dateTime , new \ DateTimeZone ( 'UTC' ) ) ; } catch ( \ Exception $ e ) { return false ; } return true ; }
Checks a value is valid datetime
Checks a value is valid datetime