Skip to content
Advertisement

Debug simple java code related to Calendar Date GMT

JavaScript

This test shows

JavaScript

i.e. 11-03-2004 is after 20-05-2004

What have I done wrong?

Advertisement

Answer

JavaScript

mm is for milliseconds; make those capitol M, like this:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement