moment.js date format

Moment.js set yyyy-mm-dd format date
  
moment().format('YYYY-MM-DD H:m:s');  

How to add missing date month year in mysql (php)

Hi 

I have tried many solutions with MySQL but at the end, i found solution with PHP
which  is best 


$begin = new DateTime('2016-01-20');
$end = new DateTime('2017-12-10');

while ($begin <= $end) {
    echo $begin->format('Y-m'), "n";
    $begin->modify('first day of next month');
}

add event on dynamic content in jquery

Code Snippets

Try Event Delegation:
$(document).on("change", "#Sites", function(){
    var siteId = this.value;
    GetSectors(siteId);  
});