0

Can someone help me find the Error?

I made a new Code coach Challenge (day of the week) and everything except for Challenge 1 and 5 are false. Why? (Challenge 1 works in PC) using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sololearn { class Program { static void Main(string[] args) { string day = Console.ReadLine(); if(day.Contains("/")) { string[] dates =day.Split('/'); day = dates[1] + "/" + dates[0] + "/" + dates[2]; } var dayOfTheWerk = DateTime.Parse(day); Console.WriteLine(dayOfTheWerk.DayOfWeek.ToString()); } } }

2nd Jul 2022, 4:27 PM
Felix Alcor
Felix Alcor - avatar
1 Antwort
0
Already solved I needed to spin it because of where I come from but SoloLearn does Not need that also Just delete the entire if statment
2nd Jul 2022, 4:35 PM
Felix Alcor
Felix Alcor - avatar