DateFormat
Less than 1 minute
DateFormat
Formats a date using the specified format.
Methods
run
public run(mixed $item, ?string $format): stringParameters
| 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 on Wed, 07 Jan 2026 11:29:59 +0000