Комментарии:
Hey! I need help. If I follow your steps after the build this error occures:
Thread 1: "-[My_Project_Name.ViewController updateTime]: unrecognized selector sent to instance 0x7fec1ed09510
What do I have to do?
Hello, really helpful video. But how do you change the time and date for a certain country? Please help!
ОтветитьBut what if I want to save the time and not update?....great videos
ОтветитьThree years later, this is just what I was looking for. Thank you!!
ОтветитьSweet swift coding A+
ОтветитьI’m using xcode 9 and NSdateformatter is not recognized , what is the new method for that !?
ОтветитьThis whole tutorial is unfortunately useless in Swift 4, as NSDateFormatter was obsoleted. Good video anyway, though!
Ответитьand in Swift 3?
Ответитьi found no option of NSDateFormatter what i do now????
ОтветитьHi Jared! Great Video. Just a question! What if i just want to display "Monday" which is the day of the week without showing the rest. How do i add it into the code?
ОтветитьKeep up the good work. Awesome tutorial
Ответитьi need to know how to display this 1456725600000 in date format
and what is wrong with that??????
let timeAsInt: Double = 1456466400000
let timeAsInterval: NSTimeInterval = Double(timeAsInt)/1000
let theDate = NSDate(timeIntervalSince1970: timeAsInterval)
let newStringgDate = String(theDate)
let formatter = NSDateFormatter()
formatter.dateFormat = "dd-MM-yyyy"
formatter.dateStyle = NSDateFormatterStyle.MediumStyle
let defaultTimeZoneStr = formatter.dateFromString(newStringgDate)
print ("this is the new date \(defaultTimeZoneStr)")
when i print defaultTimeZoneStr it retrieve nil
thankss
Please can you start tutorials for python
ОтветитьHi Jared! Great Tutorial! Is there a way I can change the time to show a different time zone?
ОтветитьNice. Thanks :)
ОтветитьThanks
ОтветитьGreat Work! how easy would it be to make an app that only shows week numbers?.
ОтветитьI'm getting 2 error messages when I type
Label.text = DateFormatter.localizedString(from: <Date>, dateStyle: DateFormatterStyle.MediumStyle, timeStyle: DateFormatterStyle.ShortStyle)
}
Hey Jared!
Great video first of all :)
I was wondering there was a way to get the individual hour/minute
like, to have a variable called hour and have it equal say, 12 (if the current time is noon)?
Thanks in advance :)
how to make just the day something like just saturday
Ответить