NSDateFormatter dateFromString Always Returns nil

前端 未结 7 737
不知归路
不知归路 2020-12-06 10:19

I want to apologize ahead of time for asking a repeat question, but none of the other solutions have worked for me yet. Every time I try to pass a date string to the dateFro

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-06 10:37

    You're trying to use dateFromString but the Format you have passed to your Formatter is different of what you're using in dateString.

    Try to use this config in your dateFormat: E',' M d',' yyyy 'at' hh:mm:ss aa z

提交回复
热议问题