Closed Barikoff closed 3 years ago
https://yadi.sk/i/_qDygo6HbQwYUw // todat 29 jan 2021 let dateFormatter = DateFormatter() dateFormatter.dateFormat = "YYYY-MM-dd" let fromD = dateFormatter.string(from: Date().add(-1.months)) print ("(fromD)") // print "2021-12-29"
this incorrent apple DateFormatter work! wow
https://yadi.sk/i/_qDygo6HbQwYUw // todat 29 jan 2021 let dateFormatter = DateFormatter() dateFormatter.dateFormat = "YYYY-MM-dd" let fromD = dateFormatter.string(from: Date().add(-1.months)) print ("(fromD)") // print "2021-12-29"