
## Format (1 of 2) {#format_1}

Formats a datetime and return a string to be outputted.

**Returns:** System::String Aspose::Email::Tools::Logging::

```cpp
Format(System::DateTime datatime)
```

| Parameter | Description |
| --- | --- |
| datatime | The datetime value for formatting to string |

---

## Format (2 of 2) {#format_2}

Formats a log entry and return a string to be outputted.

**Returns:** String representing the log entry.

```cpp
Format(System::SharedPtr < LogEntry > entry)
```

| Parameter | Description |
| --- | --- |
| entry | Log entry to format. |

