index.js
function ToDate(amount, unit, method) {
  this.amount = amount;
  this.method = method;
  this.unit = unit;
}
function ToDate(amount, unit, method) {
  this.amount = amount;
  this.method = method;
  this.unit = unit;
}
function ToDate ( amount , unit , method ) { this . amount = amount ; this . method = method ; this . unit = unit ; }
To Date.

@param {Number} amount
@param {String} unit [optional]
@param {String} method [optional]
@constructor
To Date .