Server Date

  • Thread starter Thread starter Micheal
  • Start date Start date
M

Micheal

ASP.NET using C# - How do I get the current server date (e.g. 2003)?

Thanks in advance
 
Hi,

DateTime.Now

or if you need the year:

DateTime.Now.Year

Best regards,

Marc Höppner
NeoGeo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top