Can anyone help me for separating datePicker values like day, month and year?
I want to sepearate them for calculation. I can not do that, I looked older questions but not convert them to my problem.
@objc func whenDoneButtonPressed(){
let dateFormatter = DateFormatter()
dateFormatter.dateStyle = .long
dateFormatter.timeStyle = .none
sulustarihiTextField.text = dateFormatter.string(from: datePicker.date)
print((sulustarihiTextField.text!))
self.view.endEditing(true)
}