Skip to main content
gamedev.net
🔒 Locked

Getting system time with .NET

Started by Mr Cucumber 0 replies 150+ views
Original Post
Mr Cucumber
Mr Cucumber
In my C# .NET program I need to get the system time. I have been unable to find it. Is there a class that can do this?
jperalta
jperalta
DateTime dt = System.DateTime.UtcNow; or
DateTime dt = System.DateTime.Now;

-- Exitus Acta Probat --

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.