swift – Get date from string; not in UTC time

swift – Get date from string; not in UTC time

BriOnH, do you mean that when print or log the returned date to the console or screen it is displayed in UTC date format? If you want a dates string representation other than UTC format you can use/call the instance method description(with locale: Locale?) with your wanted locale object. For a detailed explanation click on the link to check out the methods documentation.

swift – Get date from string; not in UTC time

Leave a Reply

Your email address will not be published. Required fields are marked *