By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,890 Members | 1,124 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,890 IT Pros & Developers. It's quick & easy.

Dates

P: n/a
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?
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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" <lo********@comcast.net> wrote in message
news:uL**************@TK2MSFTNGP09.phx.gbl...
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?

Nov 20 '05 #2

P: n/a
"Lou" <lo********@comcast.net> schrieb
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.
--
Armin

Nov 20 '05 #3

P: n/a
Hello,

"Lou" <lo********@comcast.net> schrieb:
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.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.