function datetime() {
        now= new Date();
 
        hours= now.getHours();
        minutes= now.getMinutes();
        seconds= now.getSeconds();
        timeStr= "" + hours;
        timeStr+= ((minutes < 10) ? ":0" : ":") + minutes;
        timeStr+= ((seconds < 10) ? ":0" : ":") + seconds;
         
        date= now.getDate();
        month= now.getMonth()+1;
        year= now.getYear();
        
        dateStr= 1900+ year+"-"+((month < 10) ? "0" : "")+month+"-"+((date < 10) ? "0" : "") + date; 
        return dateStr + " " + timeStr;;
}