I written code as follows
document.write(new Date().toLocaleDateString());
When i run the above code shows output as follows
1/23/2018
i want to change above date format as 23/1/2018.
for that i changed the above code as document.write(new Date().toLocaleDateString(dd/mm/yyyy));
But the above code it is not working
What I have tried:
I written code as follows
document.write(new Date().toLocaleDateString());
When i run the above code shows output as follows
1/23/2018
i want to change above date format as 23/1/2018.
for that i changed the above code as document.write(new Date().toLocaleDateString(dd/mm/yyyy));
But the above code it is not working