DateTime DateNow = date time. Now; //Get the current system time;
Date time date = date time. parse(" 20 14- 10-0 1 "); //Borrowing time; If it is DateTime data, no conversion is needed;
//Judge whether the number of days minus the borrowing time from the current time is more than 60 days;
If (DateNow. Subtract (date). Duration (). Day & gt60)
{
MessageBox。 Show ("borrowing time exceeds 60 days");
}