Converts the specified string representation of a date and time to its DateTime equivalent.
A DateTime equivalent to the date and time contained in s.
The DateTimeFormatInfo for the invariant culture is used to supply formatting information about s.
Exception Type | Condition |
---|---|
FormatException | s does not contain a valid string representation of a date and time. |
DateTimeConversionFunctions Class | NAnt.Core.Functions Namespace