Format a date with the given PHP date() or PHP strftime() format
Note: this method moved to the WireDateTime class and is kept here for backwards compatibility.
Usage
$string = FieldtypeDatetime::formatDate(int $value, string $format);
Arguments
Name | Type(s) | Description |
---|---|---|
value | int | Unix timestamp of date |
format | string | date() or strftime() format string to use for formatting |
Return value
string
Formatted date string
FieldtypeDatetime methods and properties
API reference based on ProcessWire core version 3.0.236