Server Date

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Micheal

    #1

    Server Date

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

    Thanks in advance


  • Marc Hoeppner

    #2
    Re: Server Date

    Hi,

    DateTime.Now

    or if you need the year:

    DateTime.Now.Ye ar

    Best regards,

    Marc Höppner
    NeoGeo

    "Micheal" <frooyo@sbcglob al.net> wrote in message
    news:ewyf6AsUDH A.2360@TK2MSFTN GP10.phx.gbl...[color=blue]
    > ASP.NET using C# - How do I get the current server date (e.g. 2003)?
    >
    > Thanks in advance
    >
    >[/color]


    Comment

    Working...