FieldtypeDatetime::convertDateFormat()

Given a date() format, convert it to either 'js', 'strftime' or 'regex' format

Note: this method moved to the WireDateTime class and is kept here for backwards compatibility.

Usage

$string = FieldtypeDatetime::convertDateFormat(string $format, string $type);

Arguments

NameType(s)Description
$formatstring

PHP date() format

$typestring

New format to convert to: either 'js', 'strftime', or 'regex'

Return value

string


FieldtypeDatetime methods and properties

API reference based on ProcessWire core version 3.0.251