Dates

  • Thread starter Thread starter Lou
  • Start date Start date
L

Lou

How do I check if one date variable is the same as another date variable

eg;
If CurrentFileDate <> InstallFiledate Then

End If

this doesn't work?
 
Hi,

If you are looking to check file times you are probaly better
off using this.
I dont think you care if the hours, mins, and seconds are the same.

If CurrentFileDate.ToShortDateString <> InstallFiledate.ToShortDateString
Then

End If

Ken
 
Lou said:
How do I check if one date variable is the same as another date
variable

eg;
If CurrentFileDate <> InstallFiledate Then

End If

this doesn't work?


It should work. Where do you get CurrentFileDate and InstallFiledate from?
What are their values? If you only want to compare the Date (wihtout time),
compare CurrentFileDate.Date to InstallFiledate.Date.
 
Hello,

Lou said:
How do I check if one date variable is the same as another
date variable

eg;
If CurrentFileDate <> InstallFiledate Then

End If

Works for me.
 
Back
Top