SyntaxFix
Write A Post
Hire A Developer
Questions
For swift
var dateString:String = "2014-05-20"; var dateFmt = NSDateFormatter() // the format you want dateFmt.dateFormat = "yyyy-MM-dd" var date1:NSDate = dateFmt.dateFromString(dateString)!;