JavaScript date object : getDate() method