
CodePudding user response:

Please according to the structure of the DateTime function pass to participate!
CodePudding user response:
It is better to translate all kinds of basic types, and understand the first,CodePudding user response:
You are A, B, C should ToInt,CodePudding user response:
String [] Weekdays={" Monday ", "Tuesday", "on Wednesday", "Thursday", "Friday", "Saturday", "week 鈤"};
DateTime now=DateTime. Now;
Console. WriteLine (" {0: yyyy years now on d M, H point M}, {1} ", now, Weekdays [(int) now. DayOfWeek]);
String A, B, C;
Console. WriteLine (" please enter the start time (date) (month) (year) : ");
A=Console. ReadLine ();
B=Console. ReadLine ();
C=Console. ReadLine ();
DateTime start=new DateTime (Convert ToInt16 (A), Convert the ToInt16 (B), Convert the ToInt16 (C));
TimeSpan times=now - start;
From the Console. WriteLine (" {0} on {1} {2} to {3} days have passed now ", A, B, C, times);
The Console. ReadLine ();
CodePudding user response:
Somebody else method definitions need you to type int value, ABC is a datetime types, you define the system give you hint to a datetime to intCodePudding user response:
The constructor need to pass the wrong parameter typesCodePudding user response: