1

I'm assigning date to a variable by adding days to current date and get the string from that date like below.

let today = Date()
let duedate = Calendar.current.date(byAdding: .day, value: due, to: today)

let dateformatter = DateFormatter()
dateformatter.dateFormat = "MMM dd, yyyy"
duedateString = dateformatter.string(from: duedate!)

This works fine. but when I debug, I'm getting following issue

enter image description here enter image description here enter image description here

hope this shouldn't be the expected behavior. anyone has an idea or experienced with this and anyone knows the reason for this.

Marlon Brando aka Ben
  • 863
  • 1
  • 14
  • 33

0 Answers0