나는 파스칼 프로그래밍에 새로운 꿀벌이다. 나는 하루 종일 문자열을 유효한 날짜로 변환하여 나중에 다른 날짜를 뺄 수있다. 두 날짜 사이의 날짜. 수 pls pls 도와주세요. 나사로 파스칼에서 날짜로 문자열을 변환
은 내가 calulation에서 사용할 수있는 날짜 문자열 형식으로 입력 첫 데이트를 변환하려고이 코드로 시작 : 나는 더 프로그램을 확대 할 것으로 예상하고있다program TryDate;
Var
date1: TDateTime;
thedate:string;
Begin
Writeln ('Enter date');
Readln (thedate);
date1:=StrToDate (thedate);
Writeln ('The date is ',date1);
end.
The program's basic structure can be seen here:
Begin
Writeln ('Enter customer last name');
readln (clname);
Writeln ('Enter customer first name');
readln (cfname);
Writeln ('Enter Dvd Title');
readln (dvdtit);
Writeln ('Enter Due Date');
readln (dued);
Writeln ('Enter Actual Date Returned');
readln (adret);
daysover:=adret-dued;
readln;
end.
이에려고 이 작은 부분을 다른 구성 요소를 시도하기 전에 작동 시키십시오.
간단한 안내와 예제 또는 가능한 해결책을 제공해 주시면 대단히 감사하겠습니다.
'ScanDateTime() :
정말 무서운 물건의 경우 대부분의 사용자 정의 만든 날짜를 구문 분석 할 수있는 기능 scandatetime이 D – mclopez