'How to get localdateTime format in JS
I'm using Vuejsto develop a project and I'm struggling to make my input type datetime get a min value . The min value has to be the value of the current Date and basically I need it to be formatted the same way it is supposed to be in the field. What I mean is it should have this format.
yyyy-mm-ddThh:mm.
I didn't actually find a way to do it with a built in function in JS.
<input type="datetime-local" min="{CurrentDateValueFormattedLikeThis:yyyy-mm-ddThh:mm}" v-model="tentative.startDate">
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
