Hey i am doing a database of a bueaty salon with pascal. I need to tell the user to enter the date and validate it date but i on managed to get this far can u please help me. I need to validate that february contains 29 days if in a leap yr and 28 days if not. Help me plssss
Procedure Date(var Yr, Dy, WDay : word; var mnth : string);
Begin
Repeat
gotoxy(1,16);
Write('Enter year : ');
gotoxy(14,16);
Read(yr);
GetDate(Year,Month,Day,WeekDay);
Until (year = yr) Or (yr= (year + 1));
gotoxy(1,17);
Writeln('Enter month : ');
gotoxy(14,17);
Read(mnth);
Getdate(Year,Month,Day,WeekDay);
If ((yr / 4)= 0) AND (mnth = (monthstr[2])) then
month := (dy >= 1) AND (dy <= 29);