// Formats date and time as "AAAA-MM-DD hh:mm" Mysql Format
Date.prototype.toFormattedString = function(include_time)
{
   //Formato mnemonico
   str = this.getFullYear() + "-" + ( this.getMonth()+1<10 ? "0"+(this.getMonth()+1):(this.getMonth()+1) )  + "-" + Date.padded2(this.getDate());
   if (include_time) { str += " " + Date.padded2(this.getHours()) + ":" + this.getPaddedMinutes() }
 
  return str;
}
Date.prototype.toFormattedStringFull = function(include_time)
{
   //Formato mnemonico
   str = Date.padded2(this.getDate()) + " " + Date.months[this.getMonth()] + " " + this.getFullYear();
   if (include_time) { str += " " + Date.padded2(this.getHours()) + ":" + this.getPaddedMinutes() }
   return str;
} 