Question: I am failing to set up few UIBarButton items using Interface builder.

Here is my hierarchy in my interface builder:

```
View controller:
    View:
         TableView
    Navigation Item:
         BarButtonItem:
              Button on left
         BarButtonItem:
              Button on right

```

The problem is I can't add more than one button on `BarButtonItem`, trying to just drag another button gets the first one overwriten..

To get a bit of clearer view, I have two buttons now one on right one on left. Both of them working great. And the problem is to get like another button on the right side.

I hope the question is clear enough, if you have any questions please do ask.

Answer: 
You can use class [`DateTime`](http://www.php.net/manual/en/book.datetime.php) to make it easier working with dates.

Here's sample code for your input/output:

```
<?php
$date = new DateTime('11/16/2012');
echo $date->format('Y-d-Y');

```

**Edit:** you can use following regex pattern `\d+/\d+/\d+` to extract date from long string.
```
$date = strtodate(11-16-2012);
$ans = date('Y-d-Y',$date);
echo $ans;

```