You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
1Thank you! I knew date had to have a string method, I don't know why everyone is parsing out days and months and years and concatenating.. Even if you wanted dashes: Date().toISOString().split('T')[0].replaceAll('/','-')J Manifold– J Manifold2021年03月17日 16:55:49 +00:00Commented Mar 17, 2021 at 16:55
-
Yeah, maybe they had something else in mind.Shubham Chadokar– Shubham Chadokar2021年03月18日 03:08:29 +00:00Commented Mar 18, 2021 at 3:08
-
1Thank you, I was looking for what's needed to set value in an input date, and this is it – it should be the most common use case!Francesco Marchetti-Stasi– Francesco Marchetti-Stasi2022年12月09日 14:29:41 +00:00Commented Dec 9, 2022 at 14:29
lang-js