Question: i use to get data from this url api.but i checked this in my console but it getting crash.It like get the movie list and to display in table view.Here i use to check whether i am doing in correct way or in wrong manner.

Here my code:

**EDITED:**

```
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSString *authUrl =@"http://www.omdbapi.com/?s=Game%20of%20Thrones&Season=1";

    NSString *str1 = [authUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

    NSURL *url = [NSURL URLWithString:str1];
    NSData * data=[NSData dataWithContentsOfURL:url];

    NSError * error;
    NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options: NSJSONReadingMutableContainers error: &error];
    NSLog(@"json%@",json);
}

```

Answer: 
> 
> I have one column which contain time in HH:mm:ss PM/Am format
> 
> 
> 

If I understand correctly from that sentence, I would assume you have a `DateTime` and you get it's string representation for your column with `hh:mm:ss tt` format.

If so, you can parse it to `DateTime` first, check it's minutes is `0`, if it is, add `30` minutes, if not, set zero it's `Minute` part and add `1.5` hour.

```
string s = "10:00:00 am";
DateTime dt;
if(DateTime.TryParseExact(s, "hh:mm:ss tt", CultureInfo.InvariantCulture,
                          DateTimeStyles.None, out dt))
{
    if(dt.Minute != 0)
       dt.AddMinutes(-dt.Minute).AddHours(1.5).ToString("hh:mm:ss tt", 
                                                        CultureInfo.InvariantCulture);
    else
       dt.AddMinutes(30).ToString("hh:mm:ss tt", CultureInfo.InvariantCulture);
}

```

But of course, since you have *already* a `Datetime` instance, please do this all `AddMinutes` and/or `AddHours` process *first* then show it's *textual* representation in your columns.
This should work for you

```
var dateTime = DateTime.Now; //your original DateTime value
var result = new DateTime(dateTime.Year, dateTime.Month, dateTime.Day,
                          dateTime.Hour + 1, 30, dateTime.Second, dateTime.Kind);

```

Hour to next hour (+1)  

Minute to 30