 		super.viewWillDisappear(animated)
 		
 		notificationToken?.stop()
+	}
+}
+
+extension ProductViewController {
+	func expirationDateChanged(_ sender: UIDatePicker) {
+		let datePicker = expirationDateTextField.inputView! as! UIDatePicker
+		let expirationDate = datePicker.date
+		setExpirationDateText(with: expirationDate)
 	}
 }
 

			}
		} else if textField == expirationDateTextField {
			let date: Date?
			if let expDateString = expirationDateTextField.text {
				date = dateFormatter!.date(from: expDateString)
			} else {
				date = nil

			
		} else if textField == priceTextField {
			var price: Double? = nil
			if  let priceString = priceTextField.text,
				priceString != "" {
				price = Double(currencyFormatter!.number(from: priceString)!)
			}
			
