Converts the string representing the date/time in the specified format to the timestap.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $time_string | by value | string |
The date/time string. |
|
| $format | by value | string |
The date format of the date/time string in the PHP systax for the date formats, e.g. "Y.m.d H:i:s". |
If the date/time string could be converted, the timestamp is returned, otherwise the string "error" is returned.