FDateTime::Parse

Converts a string to a date and time.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/DateTime.h

Include

#include "Misc/DateTime.h"

Source

/Engine/Source/Runtime/Core/Private/Misc/DateTime.cpp

Syntax

static bool Parse
(
    const FString & DateTimeString,
    FDateTime & OutDateTime
)

Remarks

Converts a string to a date and time.

Currently, the string must be in the format written by either FDateTime.ToString() or FTimeStamp.TimestampToFString(). Other formats are not supported at this time.

Returns

true if the string was converted successfully, false otherwise.

Parameters

Parameter

Description

DateTimeString

The string to convert.

OutDateTime

Will contain the parsed date and time.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss