let dateFormatterPrint = DateFormatter()
dateFormatterPrint.dateFormat = "YYYY-MM-dd"
dateFormatterPrint.timeZone = TimeZone.current
dateFormatterPrint.string(from: date)
my date value is "2020-12-28 16:00:00" in date type. dateFormatterPrint.string(from: date) return "2021-12-29" instead of "2020-12-29".
How can solve it?
Selecting any option will automatically load the page