Generates a utcdatetime value from the specified string of date and time information.
The syntax requirements for the date portion of the text parameter are flexible. The variety of valid formats is the same as in the date2str function.
Each of the following calls to str2datetime is valid and produce the same output:
Each component of the date time is represented by a digit in the sequence parameter:
- 1 – day
- 2 – month
- 3 – year
For example, YMD is 321. All valid values contain each of these three digits exactly one time. If the value of the sequence parameter is invalid, the regional settings are used to interpret the input text parameter.
If the input parameters describe an invalid date and time, an empty string is returned.