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. date time

date time

Scheduled Pinned Locked Moved Visual Basic
4 Posts 4 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
    balakpn
    wrote on last edited by
    #1

    hi i want to fetch time frome system with milliseconds in the format of hr:min:s:milliseconds how we can do this pls tell me if not possible inthis way then tell me some other way in which we can fetch the same or equivalent

    with regards Balagurunathan.B

    O C 2 Replies Last reply
    0
    • B balakpn

      hi i want to fetch time frome system with milliseconds in the format of hr:min:s:milliseconds how we can do this pls tell me if not possible inthis way then tell me some other way in which we can fetch the same or equivalent

      with regards Balagurunathan.B

      O Offline
      O Offline
      originSH
      wrote on last edited by
      #2

      Custom DateTime Format Strings[^]

      1 Reply Last reply
      0
      • B balakpn

        hi i want to fetch time frome system with milliseconds in the format of hr:min:s:milliseconds how we can do this pls tell me if not possible inthis way then tell me some other way in which we can fetch the same or equivalent

        with regards Balagurunathan.B

        C Offline
        C Offline
        cutequencher
        wrote on last edited by
        #3

        try this dim stringDate as string stringDate = Format(dateValue,"HH:mm:ss") --dateValue is the given date --format function returns string if you want to have a datevalue then try this: dim newDate as datetime newDate = Date.Parse(Format(dateValue,"HH:mm:ss")) --hope this would help!

        L 1 Reply Last reply
        0
        • C cutequencher

          try this dim stringDate as string stringDate = Format(dateValue,"HH:mm:ss") --dateValue is the given date --format function returns string if you want to have a datevalue then try this: dim newDate as datetime newDate = Date.Parse(Format(dateValue,"HH:mm:ss")) --hope this would help!

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          yeah, now add .fff to the format string to get fractions of a second.

          Luc Pattyn [My Articles] [Forum Guidelines]

          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