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. How to calculate difference of minutes in a same day?

How to calculate difference of minutes in a same day?

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
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.
  • S Offline
    S Offline
    saneng
    wrote on last edited by
    #1

    hello!! i have to calculate difference of minutes in the samedate i used datediff function but it gives me wrong result the syntax that i m using for datediff is as datediff("n", dateval & " " & time1val ,dateval & " " & time2val) plz help me out!!! any sort of help will be highly appreciated

    T 1 Reply Last reply
    0
    • S saneng

      hello!! i have to calculate difference of minutes in the samedate i used datediff function but it gives me wrong result the syntax that i m using for datediff is as datediff("n", dateval & " " & time1val ,dateval & " " & time2val) plz help me out!!! any sort of help will be highly appreciated

      T Offline
      T Offline
      Tom Deketelaere
      wrote on last edited by
      #2

      look into the timespan object

      If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistaks.

      S 1 Reply Last reply
      0
      • T Tom Deketelaere

        look into the timespan object

        If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistaks.

        S Offline
        S Offline
        saneng
        wrote on last edited by
        #3

        thanks a lot it works fine with timespan regards

        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