refactored select_elements_starting_with_a
refactored to format date nicely