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 Sun, 01 Mar 2026 09:22:26 +0000