Implementing setup function for time and date.