for-loop for displaying dates added