How to compare 2 fields with date

Asked

Viewed 40 times

0

Hello, I have two fields, one with today’s date and one with a date in nine days. I need to make a comparison between the 2 fields to know if the field with the second date is in 10 days or less, and display a message in Messagebox. I tried to do but could not, any help is welcome. Thank you.

My code:

txtDatahoje.Text = "02/02/2018";

txtData2.Text = "11/02/2018";
  • And what is your specific difficulty?

  • on the part of making the comparison in if

  • Let’s try again, what your difficulty specific?

  • I don’t know how to compare the 2 fields to know if the date 2 is in 10 days or less.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.