## DateTime::GetDateTimeFormats() const method


Returns array of strings where each element is the string representation of the current object formatted with one of the standard date and time format specifiers.

```cpp
ArrayPtr<String> System::DateTime::GetDateTimeFormats() const
```

## See Also

* Typedef [ArrayPtr](../../arrayptr/)
* Class [String](../../string/)
* Class [DateTime](../)
* Namespace [System](../../)
* Library [Aspose.PUB for C++](../../../)
## DateTime::GetDateTimeFormats(char_t) const method


Returns array of strings where each element is the string representation of the current object formatted with the specified standard date and time format specifier.

```cpp
ArrayPtr<String> System::DateTime::GetDateTimeFormats(char_t format) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| format | char_t | Standard date and time format specifier. |

## See Also

* Typedef [ArrayPtr](../../arrayptr/)
* Class [String](../../string/)
* Class [DateTime](../)
* Namespace [System](../../)
* Library [Aspose.PUB for C++](../../../)
## DateTime::GetDateTimeFormats(const SharedPtr\<IFormatProvider\>\&) const method


Returns array of strings where each element is the string representation of the current object formatted with one of the standard date and time format specifiers and the specified format provider.

```cpp
ArrayPtr<String> System::DateTime::GetDateTimeFormats(const SharedPtr<IFormatProvider> &provider) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| provider | const SharedPtr\<IFormatProvider\>\& | Format provider. |

## See Also

* Typedef [ArrayPtr](../../arrayptr/)
* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [IFormatProvider](../../iformatprovider/)
* Class [DateTime](../)
* Namespace [System](../../)
* Library [Aspose.PUB for C++](../../../)
## DateTime::GetDateTimeFormats(char_t, const SharedPtr\<IFormatProvider\>\&) const method


Returns array of strings where each element is the string representation of the current object formatted with the specified standard date and time format specifier and format provider.

```cpp
ArrayPtr<String> System::DateTime::GetDateTimeFormats(char_t format, const SharedPtr<IFormatProvider> &provider) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| format | char_t | Standard date and time format specifier. |
| provider | const SharedPtr\<IFormatProvider\>\& | Format provider. |

## See Also

* Typedef [ArrayPtr](../../arrayptr/)
* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [IFormatProvider](../../iformatprovider/)
* Class [DateTime](../)
* Namespace [System](../../)
* Library [Aspose.PUB for C++](../../../)
