Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.07 KB

tostring-method-datetimeoffset.md

File metadata and controls

35 lines (25 loc) · 1.07 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic
toString Method (DateTimeOffset)
toString Method (DateTimeOffset)
David-Engel
davidengel
01/19/2017
sql
connectivity
reference

toString Method (DateTimeOffset)

[!INCLUDEDriver_JDBC_Download]

Returns a string representation of the DateTimeOffset object.

Syntax

  
public String toString()  

Return Value

A string representation of the DateTimeOffset object.

Remarks

The string has the format YYYY-MM-DD HH:mm:ss[.fffffff] [+|-]HH:mm.

The fractional seconds of the returned string are zero padded to the declared precision. For example, a datetimeoffset(6) with a value of "2010-03-10 12:34:56.78 -08:00" will be formatted by DateTimeOffset.toString as "2010-03-10 12:34:56.780000 -08:00".

See Also

DateTimeOffset Class
DateTimeOffset Members