var today = new Date(); var time = today.getHours() + ":" + today.getMinutes() ; var dateTime = date+' '+time;