var now = new Date(); var nowDate = now.getFullYear() + "-" + fnRight("0"+ now.getMonth()+1, 2) + "-" + fnRight("0"+ now.getDate(), 2) + " " + fnRight("0"+ now.getHours(), 2) + ":" + fnRight("0"+ now.getMinutes(), 2) + ":" + fnRight("0"+ now.getSeconds(), 2);