on 01-10-2017 4:10 PM
I'm using sap.m.DatePicker() and would like to get the month and the year that have been selected. I'm able to use getVaue() which returns something like "01/17" and getDateValue() which returns something like "Tue Jan 10 00:00:00 EST 2017". I can take these strings and manipulate them to get the values I want, but is there an easier way to get those values directly from the DatePicker().
getDateValue().getYear()
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.