JavaScript Date toLocaleDateString()
JavaScript Date toLocaleDateString()
The toLocaleDateString() method is used to return the date part of a date object as a string by using locale conventions. It will skip the time part of the date object.
Syntax:-
Its syntax is:- Date.toLocaleDateString()
Return:-
Its return is:- string represnting date