ParseDateTime is similar to CreateDateTime except that it takes a string instead of specifically enumerated date/time values.
Both ParseDateTime and CreateDateTime are provided primarily to increase the readability of code in compound expressions.
Years from 0 to 29 are interpreted as 21st century values. Years 30 to 99 are interpreted as 20th century values.
When passing a date/time value as a string, make sure it is enclosed in quotes. Otherwise, it is interpreted as a number representation of a date/time object, returning undesired results.
|