Summary
Converts the argument to a datetime.
Syntax
[Function("to-datetime")]
[Obsolete("Use type-specific conversion functions instead.", false)]
public static DateTime ToDateTime(DateTime value)
Attributes
Type |
Description |
FunctionAttribute |
Indicates that the method should be exposed as a function in NAnt build
files.
|
ObsoleteAttribute |
|
Parameters
Name |
Type |
Description |
value |
DateTime |
value to be converted |
Return Value
Type |
Description |
DateTime |
value converted to datetime. The function fails with an exception when the conversion is not possible. |