Date.prototype.getDays = function()
{
	return 32 - new Date(this.getFullYear(), this.getMonth(), 32).getDate();
}

Date.prototype.getFormatted = function()
{
	return this.getFullYear() + '-' + ((this.getMonth() < 9)?'0':'') + (this.getMonth() + 1) + '-' + ((this.getDate() < 10)?'0':'') + this.getDate();
}

Date.parseString = function(aString)
{
	var tempDate = Date.parse(aString.replace(/-/g, '/'));
	if (isNaN(tempDate)) return false;
	return new Date(tempDate);
}


