HTML table 100% width, with vertical scroll inside tbody

Topic on Stackoverflow: http://stackoverflow.com/questions/17067294/html-table-with-100-width-with-vertical-scroll-inside-tbody

by harifrais

HTML

<div class="col-2 col-lg-2 p-0">
                  <div class="form-group">
                     <label for="">Date</label>							
                     <div class="input-group date-pic">
                        <input type="text" name="modelgraphperformance-datetimes" id="modelgraphperformance-datetimes" class="form-control" readonly="">
                        <div class="input-group-append">
                           <span class="input-group-text"><i class="fas fa-calendar-alt"></i></span>
                        </div>
                     </div>
                  </div>
               </div>

JavaScript

Date.prototype.yyyymmdd = function() {
				var mm = this.getMonth() + 1; // getMonth() is zero-based
				var dd = this.getDate();

				return [this.getFullYear(),
					(mm > 9 ? '' : '0') + mm,
					(dd > 9 ? '' : '0') + dd
				].join('');
			};

		var date = new Date();
		var todate = date.setDate(date.getDate()-1);
		var yesterday = new Date(date.getTime());
		var fromdate = yesterday.setDate(date.getDate() - 7);
    
    
    alert(fromdate);