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