Implement modifying the day, hour and minute

At the moment the code assumes that every month has 31 days, which is of course
wrong.