handling single result and extracting date