help datetime
i want to make a program were i type in my social security number and it says which day i was born in example user writes 2000, 04, 28, computer says you are born on a Friday
DateTime you can usebirthDate.DayOfWeek is the correct one then, I'm not sure what you're doing with thisYear thing exactlythisYear is 2022-04-28dayOfWeek which is thisYear.DayOfWeek would give the day of week your birthday would be this yearDateTime from ityyyy-MM-ddDateTime.Parse (or ParseExact) to create a DateTime object directly from the string itselfDateTimeDateTimeDateTimebirthDate.DayOfWeekthisYearthisYeardayOfWeekthisYear.DayOfWeekyyyy-MM-ddDateTime.ParseParseExact