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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -