How to get Current date in Javascript?

 Posted by vishalneeraj-24503 on 12/19/2013 | Category: JavaScript Interview questions | Views: 908 | Points: 40
Answer:

With the help of getDate() function of Date() Object,we can get current Date.

function get_current_date() 

{
var date = new Date();
alert(date.getDate());
}


It will show current date.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response