Answers for "javascript toLocaleDateString time"

1

js tolocalestring with hours

var dateWithouthSecond = new Date();
dateWithouthSecond.toLocaleTimeString('pt-BR', {hour: '2-digit', minute:'2-digit'});
Posted by: Guest on June-04-2021
0

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);
Posted by: Guest on March-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language