2
I have the following problem.
I have a date Picker that gives me the value of the date so : dd-mm-yya (13-05-2016)
But I need to verify which day of the week is ex: Today is Friday. The problem I can’t verify with this format.
I would have to take the value of the field and change it to use New Date() and getDay() to check. Now how do I do it ?
Or do I have a way of checking in that shape ?
Or how to use the method toLocaleDateString
Note need to be in javascript not Jquery, I’m learning JS.
Hugs
I adjusted the answer
– fdfey
Thanks, it works well. Too bad it’s with Jquery. I’ve already done it with pure js. Thank you so much for the help.
– Uriel
Oh yes, jQuery is just to select the element, but the focus is to split your date by the '-' and use the parameters in the correct order of the date.
– fdfey