Update Question2.java

isn't it dateformatter instead of dateformat in the question?
Merge pull request #1 from damiencharpentier/patch-1

Update Question2.java