MatthewYork / DateTools

Dates and times made easy in iOS
MIT License
7.22k stars 952 forks source link

Incorrect add chunk calculation if it negative #300

Closed Barikoff closed 3 years ago

Barikoff commented 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"

Barikoff commented 3 years ago

this incorrent apple DateFormatter work! wow