programming faqs interview questions tech technical educational freshers guide preparation interviews hr telephonic
try another color:
try another fontsize: 60% 70% 80% 90%
ProgrammingFAQs

how to get current date and time in javascript?

var t_date = new

var t_date = new Date();
var t_day=t_date.getDate();
var t_month=t_date.getMonth();
var t_year=t_date.getFullYear();
document.write(t_month + "-" + t_day + "-" + t_year)