Been using this function to covert a String to a Date Object.  

Similar Qs on SO, however could not find one that handles my case of just the time. So this post I believe is not a duplicate.

```
    func convertTimeStringToDate() -> Date {
                //time will be "04:48"
                let dateFormatter = DateFormatter()
                dateFormatter.dateFormat = "HH:mm"
                dateFormatter.dateStyle = .none
                dateFormatter.timeStyle = .short
                dateFormatter.locale = Locale.current
                return dateFormatter.date(from: "04:48")!
            }

```

The function returns nil so crashes as its unwrapped!. I can not see what's wrong with the code.