DateTime not working

So in the C# Beginners Course I’m on the DateTime Lecture, but whenever I type

var dateTime = new DateTime(2015, 1, 1);

I get an error saying "DateTime is a namespace, but is used like a type. "

Anyone else getting this error?

Thanks,

Hey all,

Never mind I just realized I can’t use the same project name as the name type…

Whoops!

1 Like