You can use DateDiff to compare Dates, or Dateadd to add hours, days, months..etc
DateDiff Example: Find the diff in days between 2 dates..
Code:Dim Ld As Date Ld = #12/8/2005# MsgBox DateDiff("d", Ld, Date) ' "d" = Days
|
Results 1 to 12 of 12
Thread: Compare year together with monthThreaded View
|
Click Here to Expand Forum to Full Width |