how to format date using toLocaleDateString() code example
Example: how to get date using tolocaledatestring
const date=new Date();
const options - {weekday:'long',year:'numeric',month:'long',day:'numeric'};
let today=today.toLocaleDatestring("en-IN",options);