I've been trying to use mktime to get which day of the week it is for whatever date I use. But it keeps returning wrong values for wday and yday. I don't care about yday but I'm not sure what the problem. Ive looked over the code multiple times, searched around on the internet etc..., and I've finally run out of ideas of what I could be doing wrong.
Here's a pic of the code and values after calling mktime. If someone could give me a hand I'd appreciate it.
Thanks