Show current date using Javascript in web browser(Client side date in web browser)

For client side scripting,

Go through following lines to product date in DD/MM/YYYY format:

var objToday = new Date();

var dd = objToday.getDate();

var mm = objToday.getMonth() + 1; //January is 0

var yyyy = objToday.getFullYear();

if (dd < 10) { dd = ’0' + dd }

if (mm < 10) { mm = ’0' + mm }

var strToday = dd + ‘/’ + mm + ‘/’ + yyyy;

alert(strToday); // will show like ’17/07/2013'

On, 27/07/2013, 27 July, 2013

Latest News

Cambridge Analytica: Facebook row firm boss suspended
Is leaving Facebook the only way to protect your data?
Cambridge Analytica: Warrant sought to inspect company
5G auction bidding starts in UK
Should social media stars face tougher advertising rules?
Facebook under fire in escalating data row
#DeleteFacebook trends in response to Cambridge Analytica
Uber halts self-driving car tests after death
BBC wants to keep FM radio for longer
School bomb threats: Disgruntled Minecraft gamer 'behind hoax'