Hello, I thought I’d post the answer to this common question I answered for myself.
include “Misc/DateTime.h”
include “HAL/PlatformTime.h”
FDateTime ReturnTimestamp() {
int32 Year, Month, Day, DayOfWeek;
int32 Hour, Minute, Second, Millisecond;
FPlatformTime::SystemTime(Year, Month, DayOfWeek, Day, Hour, Minute, Second, Millisecond);
return FDateTime(Year, Month, Day, Hour, Minute, Second, Millisecond);
}
Below is the documentation for FDateTime. Have fun!