add method to retrieve date from date picker