Below are sample procedure it will help you
Create Procedure Usp_SelectStudentPresetDetails
As
@FromDate Datetime,
@EndDate Datetime
Begin
Select StudentName,intime
From TableName
where DATEDIFF(d,@FromDate,FromDate) >= 0
AND DATEDIFF(d,@EndDate,ToDate)<= 0
AND intime IS NOT NULL
end