Question: I have a plist file which contains array of dictionaries ![enter image description here](https://i.stack.imgur.com/FDoUi.png)

How can I traverse through this and remove all keys and value with key fQty? I need to remove fQty so that I can compare the dictionary to a new dictionary disregarding the fQty field.

Answer: 
```
SimpleDateFormat("MM-dd-yyyy");

```

instead of 

```
SimpleDateFormat("mm-dd-yyyy");

```

because `MM points Month`, `mm points minutes`

```
SimpleDateFormat sm = new SimpleDateFormat("MM-dd-yyyy");
String strDate = sm.format(myDate);

```
Please change small "mm" month to capital "MM" it will work.for reference below is the sample code.

```
        Date myDate = new Date();
        SimpleDateFormat sm = new SimpleDateFormat("MM-dd-yyyy");

        String strDate = sm.format(myDate);

        Date dt = sm.parse(strDate);
        System.out.println(strDate);

```