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. Timer in vb.net

Timer in vb.net

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

    Hi, I have the following problems. 1. First, I want to subtract the current from the date of birth 2. Second , I want to check whether the current date is greater then the date of birth Please send me the functions that calculates it. Thank You Pankaj Garg

    G C J 3 Replies Last reply
    0
    • P pankajgarg12

      Hi, I have the following problems. 1. First, I want to subtract the current from the date of birth 2. Second , I want to check whether the current date is greater then the date of birth Please send me the functions that calculates it. Thank You Pankaj Garg

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      1. Use the DateTime.Now property to get the current date and time. Use the Subtract method to subtract the date of birth from it. 2. Just compare them. The operator for 'greater than' is >. --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • P pankajgarg12

        Hi, I have the following problems. 1. First, I want to subtract the current from the date of birth 2. Second , I want to check whether the current date is greater then the date of birth Please send me the functions that calculates it. Thank You Pankaj Garg

        C Offline
        C Offline
        Chatura Dilan
        wrote on last edited by
        #3

        you can subtract dates by using this Dim birthDay As Date = New Date(2006, 3, 17) Dim currentDate As Date = Now.Date Dim Difference As Double Difference = currentDate.ToOADate - birthDay.ToOADate ;)

        Regards,

        Chatura Dilan

        1 Reply Last reply
        0
        • P pankajgarg12

          Hi, I have the following problems. 1. First, I want to subtract the current from the date of birth 2. Second , I want to check whether the current date is greater then the date of birth Please send me the functions that calculates it. Thank You Pankaj Garg

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #4

          If you cant work out these 2 simple functions, given the internet as reference, you should find another line of work.

          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