format dates from date picker interface