/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Create the dateformatter object //Set the required date format [formatter setDateFormat:@"yyyy-MM-dd"]; //Get the string date //Display on the console NSLog(str); //Set in the lable [dateLabel setText:str];
URL: http://www.roseindia.net/tutorial/iphone/examples/iphone-Objective-c-date.html