Convert Date to String Format
var getPostDate = '2020-07-15 12:58:56';
getPostDate = getPostDate.split(" ",1);
getPostDate = new Date(getPostDate).toDateString("yyyy-MM-dd");
console.log(getPostDate);
Simple & Powerfull Online Free Tools for Designer, Web Developer & SEO Experts
Use online free tools & web resources to improve performance and boost your work speed. Here we provide the list of free online tools that we also use all the time for making work faster and smoother.
Visit My Website http://myfreeonlinetools.com/
Comments
Post a Comment