Here is the scenario :
I have a form :
| Check in time |
| Check out time |
E.G i do :
Check in = 15:30
Check out = 16:30
Questions :
- How can i store the times in my mysql Table which is styled in "datetime" (YY-MM-DD 10:45:48)
Will this work ?:
Date datum = new Date();
//today declared as today
datum.setDay(today);
datum.setMonth(today);
datum.setYear(today);
datum.setMinute(30);
datum.setHour(15);
and then " insert date='date' "
2nd :
How can I Delete via MYSQL the row which Time is Smaller than current:
Will this work?
DELETE FROM adminLoginLog WHERE `date` > NOW() );
Note im useing MysqlI <--- not mysql