ios - How to convert UTC time to local time -
i'm new programming.
how convert string
local time in swift?
var string = "7:55:26 pm"
thanks!
this how format string in nsdate , deploy following code
var dateformat : nsdateformatter = nsdateformatter() dateformat.dateformat = "yyyy-mm-dd hh:mm:ss" var string = "2015-03-27 07:55:26" let date : nsdate = dateformat.datefromstring(string)!
Comments
Post a Comment