Method | Description | |
---|---|---|
fromString ( mixed $value, array $formats = [] ) : DateTime | Convert string into DateTime object from more date without time | |
tryConvertToDate ( mixed $value, array $formats = [] ) : DateTime | Try to convert string into DateTime object from more date formats | |
tryConvertToDate ( string $value ) : DateTime | Try to convert string into DateTime object from more date formats | |
tryConvertToDateTime ( mixed $value, array $formats = [] ) : DateTime | Try to convert string into DateTime object | |
tryConvertToDateTime ( string $value ) : DateTime | Try to convert string into DateTime object |
public static fromString ( mixed $value, array $formats = [] ) : DateTime | ||
$value | mixed | |
$formats | array | |
return | DateTime |
public static tryConvertToDate ( mixed $value, array $formats = [] ) : DateTime | ||
$value | mixed | |
$formats | array | |
return | DateTime |
public static tryConvertToDate ( string $value ) : DateTime | ||
$value | string | |
return | DateTime |
public static tryConvertToDateTime ( mixed $value, array $formats = [] ) : DateTime | ||
$value | mixed | |
$formats | array | |
return | DateTime |
public static tryConvertToDateTime ( string $value ) : DateTime | ||
$value | string | |
return | DateTime |