Connected digital clock by creating a date object