I am using UITextField and i want that should take character in the format of xx-xx-xxx only numbers.
any help ?
If you want it to be something like a date then you can make your own date formatter like this:
NSDateFormatter *formatter;
NSString *dateString;
formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"dd-MM-yyyy HH:mm"]; //or something in your own style
dateString = [formatter stringFromDate:[NSDate date]];
[formatter release]; // maybe; you might want to keep the formatter
// if you're doing this a lot.
Getting Current Time in string in Custom format in objective c