How to get date from input?
Hi Sololearners! I have some problem here. I tried to use getDate() function for input[type=date] but console says that getDate() is not a function. Please help me) //After this I tried input.value.split('-') ; //And it worked. But I wanted to use this function))) https://code.sololearn.com/WA10a183a22a/#
4/16/2021 7:00:06 AM[email protected]$mile
4 AnswersNew Answer
Hi , Can you please tell me that what you exactly want to do or what is task or problem you are solving!! NOTE - getDate() you can access by creating an object of Date. var b = new Date() console.log(b.getDate()) Will give you current date - https://code.sololearn.com/c0lN74ozAMBX/?ref=app and please clarify your questions that exactly what do you want from us :)
Based on CamelBeatsSnake solution https://code.sololearn.com/W2eZuvxTBbhc/?ref=app
thanks to all)