Property | Type | Description | |
---|---|---|---|
$options |
Method | Description | |
---|---|---|
addCalendarIcon ( ) | ||
convertDate ( string $date, string $from = null, string $to = 'Y-m-d' ) : string | null | Convert date from one format to another. | |
get ( ) | ||
getInput ( $attr = [] ) | ||
init ( ) | ||
set ( $value ) |
public convertDate ( string $date, string $from = null, string $to = 'Y-m-d' ) : string | null | ||
$date | string | Date in string format |
$from | string | Optional source format, or null to use locale/date from configuration |
$to | string | Optional target format, or null to use locale/date from configuration |
return | string | null |