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. Visual Basic
  4. Convert integer to time........

Convert integer to time........

Scheduled Pinned Locked Moved Visual Basic
database
3 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.
  • N Offline
    N Offline
    Nagraj Naik
    wrote on last edited by
    #1

    Hi All, I want to save time from excel file to access database. excelsheet contain value 3.5 as time,this value I want to store into database datetime field as time. I don't know it is possible or not. If anyone know something please share with me. Thanks, Nagraj

    M M 2 Replies Last reply
    0
    • N Nagraj Naik

      Hi All, I want to save time from excel file to access database. excelsheet contain value 3.5 as time,this value I want to store into database datetime field as time. I don't know it is possible or not. If anyone know something please share with me. Thanks, Nagraj

      M Offline
      M Offline
      militiaware
      wrote on last edited by
      #2

      if you know what does 3.5 means as a date you may do some calculations to convert it as a long number like 12032009 then manipulate with this number as a string. make like 12-03-2009 then convert it to date (use Cdate or Ctype) then save it to the database

      Faris Madi Nothing Comes Easy (N.C.E.)

      1 Reply Last reply
      0
      • N Nagraj Naik

        Hi All, I want to save time from excel file to access database. excelsheet contain value 3.5 as time,this value I want to store into database datetime field as time. I don't know it is possible or not. If anyone know something please share with me. Thanks, Nagraj

        M Offline
        M Offline
        mtone
        wrote on last edited by
        #3

        The Date time Field is going to store the date such as 3/3/2006 along with the time 12:00 AM. If I read this correctly 3.5 represents a measurment of time, 3 and a half hours, and not an actual Time of day. You should look at decimal data type or even a string.

        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