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: 
It is simple use below codes.

```
final Date todayDate = new Date();

System.out.println(todayDate);

System.out.println(new SimpleDateFormat("MM-dd-yyyy").format(todayDate));

System.out.println(new SimpleDateFormat("yyyy-MM-dd").format(todayDate));

System.out.println(todayDate);

```
see these..

formatting date

[DateTimeFormatter](https://mkyong.com/java/java-how-to-get-current-date-time-date-and-calender/)

parsing date

[Instant with zone](https://mkyong.com/java/how-to-convert-string-to-date-java/)