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 -

Fatal error: Call to undefined function menu_execute_active_handler() in drupal 7.9 -

python - RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK -