Summary
Converts the specified System.DateTime
to its equivalent
string representation.
Syntax
[Function("format-to-string")]
public static string ToString(DateTime value, string format)
value is formatted with the
System.Globalization.DateTimeFormatInfo
for the invariant culture.
Attributes
Type |
Description |
FunctionAttribute |
Indicates that the method should be exposed as a function in NAnt build
files.
|
Parameters
Name |
Type |
Description |
value |
DateTime |
A System.DateTime to convert. |
format |
string |
A format string. |
Return Value
Type |
Description |
string |
A string representation of value formatted
using the specified format
|