PDA

Click to See Complete Forum and Search --> : compare time


mena
Aug 31st, 1999, 09:48 PM
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

Jamppa
Sep 3rd, 1999, 01:18 PM
here you go

If myDay > Day(date) Then ...

If myMonth < Month(Date) Then ...

If myYear > Year(Date) Then ...