## DateTimeOffset::ToString() const method


Converts current object to string.

```cpp
String System::DateTimeOffset::ToString() const
```


### ReturnValue

[String](../../string/) representation of the current [DateTimeOffset](../) object.

## See Also

* Class [String](../../string/)
* Class [DateTimeOffset](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## DateTimeOffset::ToString(const SharedPtr\<IFormatProvider\>\&) const method


Converts current object to string using the specified format provider.

```cpp
String System::DateTimeOffset::ToString(const SharedPtr<IFormatProvider> &provider) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| provider | const SharedPtr\<IFormatProvider\>\& | Format provider. |

### ReturnValue

[String](../../string/) representation of the current [DateTimeOffset](../) object.

## See Also

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [IFormatProvider](../../iformatprovider/)
* Class [DateTimeOffset](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## DateTimeOffset::ToString(const String\&) const method


Converts current object to string using the specified format.

```cpp
String System::DateTimeOffset::ToString(const String &format) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| format | const String\& | Format string. |

### ReturnValue

[String](../../string/) representation of the current [DateTimeOffset](../) object.

## See Also

* Class [String](../../string/)
* Class [DateTimeOffset](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## DateTimeOffset::ToString(const String\&, const SharedPtr\<IFormatProvider\>\&) const method


Converts current object to string using the specified format and format provider.

```cpp
String System::DateTimeOffset::ToString(const String &format, const SharedPtr<IFormatProvider> &provider) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| format | const String\& | Format string. |
| provider | const SharedPtr\<IFormatProvider\>\& | Format provider. |

### ReturnValue

[String](../../string/) representation of the current [DateTimeOffset](../) object.

## See Also

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [IFormatProvider](../../iformatprovider/)
* Class [DateTimeOffset](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
