Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Retreiving the current time and date.

Retreiving the current time and date.

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bneacetp
    wrote on last edited by
    #1

    How would I go about retreiving the current time and date on the user's computer using .NET? :~ Thanks. Happy Programming! WWW::CodeProject::BNEACETP

    C G 2 Replies Last reply
    0
    • B bneacetp

      How would I go about retreiving the current time and date on the user's computer using .NET? :~ Thanks. Happy Programming! WWW::CodeProject::BNEACETP

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      DateTime.Now --Colin Mackay--

      EuroCPian Spring 2004 Get Together[^] "You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

      B 1 Reply Last reply
      0
      • C Colin Angus Mackay

        DateTime.Now --Colin Mackay--

        EuroCPian Spring 2004 Get Together[^] "You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

        B Offline
        B Offline
        bneacetp
        wrote on last edited by
        #3

        Thanks Happy Programming! WWW::CodeProject::BNEACETP

        1 Reply Last reply
        0
        • B bneacetp

          How would I go about retreiving the current time and date on the user's computer using .NET? :~ Thanks. Happy Programming! WWW::CodeProject::BNEACETP

          G Offline
          G Offline
          Gerald Leslie Jones
          wrote on last edited by
          #4

          DateTime structure has a property called "Now", will give you the datetime object has a current date and time.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups