i’m trying to use the Java version of:
Date d = new Date(2010, Calendar.AUGUST, 28);
but in Javascript:
var d = new Date(2010, ???, 28);
i cannot find a helper class that contains month constants? Does the Java helper Calendar class exist in Javascript?
Javascript is not Java.
Fortunately, there are libraries like
datejs.For an example, see the
set()method: