MarkLogic XCC/.Net Library |

# Duration.ToString Method

Formats this duration object as a String in the format prescribed in the W3C description of XML datatypes for a duration.

    Example: -P2Y4M5DT3H5M42.057S

Represents a duration of minus 2 years, 4 months, 5 days, 3 hours, 5 minutes, and 42.0575 seconds.
[Visual Basic]
Overrides Public Function ToString() As String
[C#]
public override string ToString();

#### Return Value

The String representation of the duration value.

#### See Also

Duration Class | Marklogic.Xcc.Types Namespace