FieldtypeDatetime::formatDate()

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

NameType(s)Description
$valueint

Unix timestamp of date

$formatstring

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.251