'Usage Dim instance As TdPeriodTimestamp Dim format As String Dim value As String value = instance.ToString(format)
Parameters
- format
- The DateTime format string that will be used to format the TdPeriodTimestamp.
'Usage Dim instance As TdPeriodTimestamp Dim format As String Dim value As String value = instance.ToString(format)
Exception | Description |
---|---|
System.FormatException | The specified format specifier is not supported. |
When a TdPeriodTimestamp is converted to a string, both the beginning and ending bounds will be included in the returning string. The format of the string will be:
(Beginning Bound, Ending Bound)
The format specifier is only used when formatting the string representation of the beginning and ending bounds of the period. It will not affect the format of the period.
If the format parameter is null, the string representation of TdPeriodTimestamp will be equivalent to the "G" format specifier which is
(yyyy-MM-dd HH:mm:ss.ffffff, yyyy-MM-dd HH:mm:ss.ffffff)
The following format specifiers are supported by TdPeriodTimestamp:
Format Specifier | Description |
---|---|
G |
The ANSI representation of the period: (yyyy-MM-dd HH:mm:ss.ffffff, yyyy-MM-dd HH:mm:ss.ffffff). Example: (2008-08-14 10:21:31.002, 2008-12-15 12:45:00.212). |
l or L |
The SQL literal representation of the period: PERIOD'(yyyy-MM-dd HH:mm:ss.ffffff, yyyy-MM-dd HH:mm:ss.ffffff)'. Example: PERIOD'(2008-04-14 10:21:31.002, 2008-12-15 12:45:00.212)'. |
Product | Versions | Platforms |
---|---|---|
.NET | 2.1, 3.1, 6 | Windows, Linux, MacOS |
.NET Framework | 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
.NET Standard | 2.0 | Windows, Linux, MacOS |