How to extract values which have the same date as the date in a particular column