How to convert a string into a date in swift -


i parsed code "1442351280" json , and want convert date in swift in medium style.

you have with foundation api

let date = nsdate(timeintervalsince1970: 1442351280) 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -