Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FDateTime
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Returns the string representation of this date using a default format. | Misc/DateTime.h | ||
| Returns the string representation of this date. | Misc/DateTime.h | ||
void ToString
(
const TCHAR* Format, |
Misc/DateTime.h |
ToString()
Description
Returns the string representation of this date using a default format.
The returned string has the following format: yyyy.mm.dd-hh.mm.ss
| Name | ToString |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/DateTime.h |
| Include Path | #include "Misc/DateTime.h" |
| Source | /Engine/Source/Runtime/Core/Private/Misc/DateTime.cpp |
FString ToString() const
String representation.
See Also
ToString(const TCHAR *)
Description
Returns the string representation of this date.
ToString uses a non-standard format syntax (see below). If you need strftime-like syntax, then use ToFormattedString: a - am or pm A - AM or PM d - Day, 01-31 D - Day of the Year, 001-366 m - Month, 01-12 y - Year, YY Y - Year, YYYY h - 12h Hour, 01-12 H - 24h Hour, 00-23 M - Minute, 00-59 S - Second, 00-60 s - Millisecond, 000-999
| Name | ToString |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/DateTime.h |
| Include Path | #include "Misc/DateTime.h" |
| Source | /Engine/Source/Runtime/Core/Private/Misc/DateTime.cpp |
FString ToString
(
const TCHAR * Format
) const
String representation.
Parameters
| Name | Remarks |
|---|---|
| Format | The format of the returned string. |
See Also
ToString(const TCHAR *, FStringBuilderBase &)
| Name | ToString |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/DateTime.h |
| Include Path | #include "Misc/DateTime.h" |
| Source | /Engine/Source/Runtime/Core/Private/Misc/DateTime.cpp |
void ToString
(
const TCHAR * Format,
FStringBuilderBase & Result
) const