Help With EDayOfWeek

Hello all,

So I am having an issue with creating a basic function to obtain the weekday of a given date.
Visual Studio is not finding an EDayOfWeek enum, although it exists in the DateTime.h

Help please? Second day using C++ so not too familiar with it

Here is the function as well:

Hi kiantheskorpion,

try adding the line #include "CoreMinimal.h" - you should be able to use it…

Hi, I have tried adding it to the cpp file, nonetheless I get an error that it is not found…it seems to be not found on the header file though, i dont get an error message using it on the cpp file

Is the error just the squiggly red lines under the line of code? If so you can ignore that - it’s just the VS intellisense hasn’t parsed the file.