adding hours in current date
<p>I am trying to build a simple system with login functionality, in which when a user login to a system, attendance of the user is recorded in database.</p>

<p>Further, in this i would like to add a functionality such as when user login to the system late(I mean, if s/he is supposed to login at 9 am an if s/he logsin after 9am, he needs to give the reason for being late).</p>

<p>I have done the attendace part, but i am stuck in the part of reason! i cant actually substract the date, and may be I am lacking the business logic too, can anyone guide me through this.</p>
