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: 
Not sure if you are asking how to get `Year-Month-Year`, or how to handle either hyphens or slashes, so the `funkyDateString` function does both:

```
function funkyDateString($date) {
    return date("Y-m-Y", strtotime(preg_replace('#-#', '/', $date)));
}

echo funkyDateString("11/16/2012");
echo funkyDateString("11-16-2012");

```

If you need the date formatted differently, then look up the formatting options in php's [date docs](http://php.net/manual/en/function.date.php)
```
$oldDate = '11/16/2012';
$newDate = date('Y-d-m',strtotime($date1));

```

Use combinations here to get exact output format:
<http://php.net/manual/en/function.date.php>