static function Parse($format, $dateTimeString)
     {
         $dt = \DateTime::createFromFormat($format, $dateTimeString);
         if (!$dt)
             return null;
         
         return self::FromDateTime($dt);
     }
static function Parse($format, $dateTimeString)
     {
         $dt = \DateTime::createFromFormat($format, $dateTimeString);
         if (!$dt)
             return null;
         
         return self::FromDateTime($dt);
     }
static function Parse ( $ format , $ dateTimeString ) { $ dt = \ DateTime :: createFromFormat ( $ format , $ dateTimeString ) ; if ( ! $ dt ) return null ; return self :: FromDateTime ( $ dt ) ; }
Creates date time from a format string and string representation
@param string $format The format date
@param string $dateTimeString The date time as string
@return Date Returns date if parsing was successful, null otherwise
Creates date time from a format string and string representation