Given a PHP date() format, convert it to either 'js', 'strftime' or 'regex' format
Usage
$string = $datetime->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
$datetime methods and properties
API reference based on ProcessWire core version 3.0.236