adding the date and time code