Convert::date

Usage

string Convert::date(DateTime | string $date, [ bool $add_time = false ])

Description

Format date

Parameters

Parameter Required Type Description
$date Yes DateTime | string
$add_time No bool Whether or not to include time with the result.

Return Value

The formatted date / time.

See Also