Implementing the ToIso8601 function to a blueprint

I’m trying to get an Iso8601 string to feed into a blueprint, and I know that this function is there in FDateTime. Where I am running into trouble is that it says that it is a non-static member reference and must be relative. I’m not sure what to do about it.
Header


UCLASS()
class SOFTSIM2_API UFlex : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()
		UFUNCTION(BlueprintPure, meta = (DisplayName = "To ISO8601", Keywords = "To ISO8601", WorldContext = "WorldContextObject"))
		static FDateTime ToISO8601();
};

cpp

FDateTime UFlex::ToISO8601()
{
	return FDateTime::ToIso8601();
}

FDateTime date;
return date.ToIso8601();

Maybe like this. And ToIso8601 return FString.