Removing for loop and fixing issue with the placeholder date