Share via


Duration.ToString Method

Definition

Convert the stored TimeSpan into an ISO8601 duration.

public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

Returns

An ISO8601 duration. For example, PT1M is "period time of 1 minute"

Applies to