How to make a comparison between 2 fields with date [duplicate]

0

Hello, I have 2 fields, 1 with today's date and one with a date in 9 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 the 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";
    
asked by anonymous 02.02.2018 / 17:41

0 answers