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
Name | Type(s) | Description |
---|---|---|
format | string | PHP date() format |
type | string | 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.236