toString¶
Formats the value using the host's default date formatting behavior.
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 host-specific format string. Server workflow scripts use .NET format strings with invariant culture; browser form scripts use the application locale formatter and its supported date-format tokens.
Returns¶
A human-readable date and time, which is not intended for storage or machine interchange. A string representing the date and time in the specified format.