Read hour and date from parameters