Parses text into DateTime.
Supported formats are "%Y-%m-%d %H:%M:%S" and "%Y-%m-%dT%H:%M:%S". Returns null for unsupported format or invalid text.
| s |
input text. |
| format |
format text. |
|
parsed date-time or null. |