What is the funciton to get system datetime

  • Thread starter Thread starter ad
  • Start date Start date
Hi,

To get the local time on the computer I use that:

DateTime date = DateTime.Now;

I hope that's what you want.

regards,
 
You can use System.DateTime.Now() for the local time and
System.DateTime.UtcNow() for universal time.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 
Back
Top