0

Possible Duplicate:
Reading Datetime value From Excel sheet

I want to compare a date (e.g. 18/10/2012 00:00:00) with an Excel date. If I am using datetime.toshortdatestring() the value gets converted to string and comparing a string with an Excel date doesnot work. Can you please suggest me some other workaround to this problem.

Community
  • 1
  • 1
Rashmi
  • 1

1 Answers1

0

Would the DateTime.Date property work for you?

http://msdn.microsoft.com/en-us/library/system.datetime.date.aspx

Michael Sallmen
  • 728
  • 5
  • 13