How do I use DateTime with javascript? I get this error:
Unknown identifier: ‘DateTime’.
1 Answer
1DateTime is part of System, so you either need to import the System namespace, or specify it when referring to DateTime (e.g., “System.DateTime.Now”). It’s not any different in C#.