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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top