Get current date in format yyyy-mm-dd with JavascriptSaf Bes·Follow1 min read·Nov 20, 2019--1ListenShareGet current date in format yyyy-mm-dd with JavascriptTo get the current date in javascript, I use Intl.DateTimeFormatnew Intl.DateTimeFormat("fr-CA", {year: "numeric", month: "2-digit", day: "2-digit"}).format(Date.now())the expected output :2019-11-20