Muhamad there is no specific function to get the date only.
getDate();<br />
getMonth();<br />
getFullYear();
are the methods which you can use to generate your data. You can write a common function and add in the Scripts(like GlobalFunction.js) and reuse in every section where the only date retreival function is needed.
You can use the method Snesh has mentioned and also if you want the Names to be displayed
then use like below,
var monthNames = [ "January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December" ];
document.write("The current month is " + monthNames[d.getMonth()]);
var dayNames = [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday",
"Sunday"];
var d = new Date();
document.write(dateNames[d.getDate()]+"/"+monthNames[d.getMonth()]+"/"+d.getFullYear())
I hope this helps.
Please post back queries if any.
Thanks.