I think the solution is really simple, I just have not seen it on the Internet.
Suppose I get int year, int month, int day, int hour, int min, int sec .. how do I generate an NSDate?
I know that we can use [NSDate initWithString:], but I think it gets complicated if month / day / hour / min / sec are single digits.
cocoa nsdate
BU.
source share