Ha ii,I know how to formate a date in iphone,but i have to set the date as given by the image below.My code is

NSDate* date = [NSDate date];
//Create the dateformatter object
NSDateFormatter* formatter = [[[NSDateFormatter alloc] init] autorelease];
//Set the required date format
[formatter setDateFormat:@"yyyy:mm:dd"];
//Get the string date
NSString* str = [formatter stringFromDate:date];
//Display on the console
// NSLog(str);
//Set in the lable
[_lbldateLabel setText:str];
How to modify my above code to get the current date as given by the image?
Thanks in advance.
1 Answer