DateFormat
Less than 1 minute
DateFormat
Formats a date using the specified format.
Methods
run
public run(mixed $item, ?string $format): string
Parameters
Parameter | Type | Description |
---|---|---|
$item | mixed | The date to format. Can be a string, integer, or DateTime object. |
$format | string | The format to use for the date. If not provided, the default format '%c' will be used. |
Generated by Hazaar API Doc Generator