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 compare date in vb???

how to compare date in vb???

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
2 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.
  • C Offline
    C Offline
    campbells
    wrote on last edited by
    #1

    is it possible to compare date in vb??? i want to compare let said if over specific date 1/1/2005 is pass from today date then some event happen.... thanks.

    S 1 Reply Last reply
    0
    • C campbells

      is it possible to compare date in vb??? i want to compare let said if over specific date 1/1/2005 is pass from today date then some event happen.... thanks.

      S Offline
      S Offline
      steff kamush
      wrote on last edited by
      #2

      Dim earlydate As Date, laterdate As Date, today As Date earlydate = "1/1/2000" latedate = "1/1/2050" today = Now If DateDiff("s", earlydate, today) > 0 Then MsgBox earlydate & " comes before " & today Else MsgBox earlydate & " comes after " & today End If :rose::rose: 1fm1fu

      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