Skip to content

toString

Returns a string representation of the current DateTimeOffset value, using the default format.

1
myDateTimeOffset.toString():string

Returns a string representation of the current DateTimeOffset value, using the specified format.

1
myDateTimeOffset.toString(format: string):string

Parameters

string format
    A format string that specifies the format of the output.

Returns

A string representing the date and time. A string representing the date and time in the specified format.

See Also