FDateTime::Validate

Validates the given components of a date and time value.

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 Validate
(
    int32 Year,
    int32 Month,
    int32 Day,
    int32 Hour,
    int32 Minute,
    int32 Second,
    int32 Millisecond
)

Remarks

Validates the given components of a date and time value.

The allow ranges for the components are: Year: 1 - 9999 Month: 1 - 12 Day: 1 - DaysInMonth(Month) Hour: 0 - 23 Minute: 0 - 59 Second: 0 - 59 Millisecond: 0 - 999

Returns

true if the components are valid, false otherwise.

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