var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
My client just alerted me of a date mistake. For some reason, getMonth() always displays the month before. Is this a bug or has it always been like this? Try the following code:
now = new Date();
testx = now.getMonth();
testy = "hello";
This follows the Java convention - months will be 0 through 11
public int getMonth()
Note: getMonth() is deprecated. As of JDK version 1.1, replaced by Calendar.get(Calendar.MONTH).
Returns the month represented by this date. The value returned is between 0 and 11, with the value 0 representing January.
the month represented by this date.
You can try to convert the String to all upper/lower case, and then compare to see if that new string is equal to the old string (if so, then it was already in all upper/lower case).