toString¶
Returns a string representation of the current DateTimeOffset value, using the default format.
myDateTimeOffset.toString():string
Returns a string representation of the current DateTimeOffset value, using the specified format.
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.