I am working with dates in swift , like I have to convert from string to data , but some weird stuff is happening when I run me code on emulator and pass my date string to formatter , it return nil , but when i run my code on physical device , it works perfectly:
“08-Jan-2023 at 8:57:10 PM GMT+5” (my string date)
this static member is my formatter and I am using it like
let date = ChatViewController.dateFromatter.date(from: dateString)
please help me why this is happening