-(NSString *)getDate:(NSDate *)date{
if (!dateFormatter) {
dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"dd-MMM-yyyy"];
//Her we give the different type of date format e.g. “dd-MM”,”
dd-MMM-yyyy”,” dd-MMM-yyyy MM:HH”
}
return [[dateFormatter stringFromDate:date] uppercaseString];
}
No comments:
Post a Comment