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. Web Development
  3. Is there a way to convert TimeStamp to DateTime?

Is there a way to convert TimeStamp to DateTime?

Scheduled Pinned Locked Moved Web Development
tutorialquestion
3 Posts 2 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.
  • H Offline
    H Offline
    hifiger2004
    wrote on last edited by
    #1

    Hi Guys, Is there a solution on how to convert TimeStamp to DateTime? Thanks

    hifiger2004

    N 1 Reply Last reply
    0
    • H hifiger2004

      Hi Guys, Is there a solution on how to convert TimeStamp to DateTime? Thanks

      hifiger2004

      N Offline
      N Offline
      NeverHeardOfMe
      wrote on last edited by
      #2

      Why isn't this in the SQL/database forum? To quote from SQL Server Books Online: "The SQL Server timestamp data type has nothing to do with times or dates. SQL Server timestamps are binary numbers that indicate the relative sequence in which data modifications took place in a database. The timestamp data type was originally implemented to support the SQL Server recovery algorithms. Never use timestamp columns in keys, especially primary keys, because the timestamp value changes every time the row is modified."

      H 1 Reply Last reply
      0
      • N NeverHeardOfMe

        Why isn't this in the SQL/database forum? To quote from SQL Server Books Online: "The SQL Server timestamp data type has nothing to do with times or dates. SQL Server timestamps are binary numbers that indicate the relative sequence in which data modifications took place in a database. The timestamp data type was originally implemented to support the SQL Server recovery algorithms. Never use timestamp columns in keys, especially primary keys, because the timestamp value changes every time the row is modified."

        H Offline
        H Offline
        hifiger2004
        wrote on last edited by
        #3

        Yes, I actually read the mssql help file and it says that its the same as the rowversion. Microsoft shouldn't named it to timestamp. It could be something like "rowstampid" or something. Because in Oracle the timestamp can be converted to datetime. Anyway, thanks for the answer.

        hifiger2004

        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