DateTimeConversionFunctions.

Parse(string) Method

Summary

Converts the specified string representation of a date and time to its System.DateTime equivalent.

Syntax

[Function("parse")]
public static DateTime Parse(string s)

Remarks

The System.Globalization.DateTimeFormatInfo for the invariant culture is used to supply formatting information about s.

Attributes

Type Description
FunctionAttribute Indicates that the method should be exposed as a function in NAnt build files.

Parameters

Name Type Description
s string A string containing a date and time to convert.

Return Value

Type Description
DateTime A System.DateTime equivalent to the date and time contained in s.