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.
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).
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.
You could try:
This will check if the current time is after 07/17/2010 9:00 AM.