code: function getDateTime(obj) {
  
      // get date, hour, minute, second, year, month and day
      var date = new Date()
        , hour = date.getHours()
        , min  = date.getMinutes()
        , sec  = date.getSeconds()
        , year = date.getFullYear()
        , month = date.getMonth() + 1
        , day  = date.getDate()
        ;
  
      // add `0` if needed
      hour  = padWithZero(hour);
      min   = padWithZero(min);
      sec   = padWithZero(sec);
      month = padWithZero(month);
      day   = padWithZero(day);
  
      // obj is true, return an object
      if (obj) {
          return {
              year: year,
              month: parseInt(month),
              day: parseInt(day),
              cDay: date.getDay()
          }
      }
  
      // return a string
      return year + "-" + month + "-" + day;
  }
docs: Returns the time in the moment when it's called
  If `obj` is true an object is returned