When i try format string to date i was given one day but that output showing different date please any one is helping for that.

```
    let my_date = "22-03-1995"
    let dateformat = DateFormatter()
    dateformat.dateFormat = "DD-MM-yyyy"
    let date = dateformat.date(from: my_date)
    print(date!)
    text_lbl.text = "\(date!)" 

```

My Output is: 1995-01-21 comes like this.