Basic working model with time and date functions. Room for improvement though.