Results 1 to 2 of 2

Thread: compare time

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Posts
    3

    Post

    Hi everyone,

    Is there any function in VB to compare 2 dates for days, months, and year like the following example. Can someone help? Thanks

    if myDay < today's date then
    do something
    end if

    if myMonth < Current month then
    do something
    end if

    if myYear < Current Year then
    do something
    end if

  2. #2
    Junior Member
    Join Date
    Jul 1999
    Posts
    25

    Post

    here you go

    If myDay > Day(date) Then ...

    If myMonth < Month(Date) Then ...

    If myYear > Year(Date) Then ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width