0
I have two dates in the format yyyy-mm-dd HH:ii:ss
The entry date "$datae" and The "$dates" departure date is intended to store an employee’s date of entry and date of exit. So far so good, now we need to get these two values "$datae" and "$dates" and make the difference to know the total working hours.
My difficulty is in getting a date already inserted, ie the part "$start = new Datetime( '2017-01-9 10:00:00' );" I am not able to get the date that was inserted in the form to replace the part "2017-01-9 10:00:00"but it is storing the date of exit and entry in the database
– Nuno Miguel