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. C / C++ / MFC
  4. Need to convert DWORD to Date Time

Need to convert DWORD to Date Time

Scheduled Pinned Locked Moved C / C++ / MFC
21 Posts 8 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.
  • D David Crow

    Based on the limited information you've provided, I'd go with something like:

    DWORD dw = 524642425;
    Date time dt = dw; ;)

    Now if you want a more helpful, detailed answer, please rethink your question. Ask yourself something like, "What does 524642425 represent?" Is it the number of seconds since the start of time, or the number of milliseconds since Windows was last started, or the number of nanoseconds since the start of the year, etc?

    "Love people and use things, not love things and use people." - Unknown

    "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

    L Offline
    L Offline
    led mike
    wrote on last edited by
    #21

    DavidCrow wrote:

    please rethink your question

    So you assume thinking was previously involved eh? Interesting. ;)

    led mike

    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