error CS0176: Member 'DateTime.Now' cannot be accessed with an instance reference; qualify it with a
Hi, i'm a beginner and i come from JavaScript and python. I'm having an issue with my CSharp code:
It just errors out:
Member 'DateTime.Now' cannot be accessed with an instance reference; qualify it with a type name instead
6 Replies
DateTime.Now
is now DateTime.Today
has no concept of "now"Doombox#1389
REPL Result: Success
Console Output
Compile: 479.627ms | Execution: 60.829ms | React with ❌ to remove this embed.
Today
is essentially Now
but without the hours/minutes/seconds componentoh ok
thanks
no worries
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.