added function dateformat and renamed function hourformat to timeformat and removed wrong enc in actualdeparture