cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the month and year from a DatePicker()

Former Member
0 Kudos

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().

kammaje_cis
Active Contributor
0 Kudos

Updated the primary and secondary tags.- Krishna (Moderator)

junwu
Active Contributor
0 Kudos

please set the correct answer.

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor

Answers (0)