NSDateformatter setDateFormat according to currentLocale

前端 未结 6 2246
孤城傲影
孤城傲影 2021-02-14 12:17

I\'m going mad with, probably, a stupid problem.

I have 3 strings: year, month and day. I need to have a date in the right format based on currentLocale, so i.e. if curr

6条回答
  •  萌比男神i
    2021-02-14 12:30

    check out this link to get understand of how NSDateFormatter based on http://www.codingexplorer.com/swiftly-getting-human-readable-date-nsdateformatter/

提交回复
热议问题