How to put Month and Year only in DataPicker (JavaFX)

2

By default (by javaFX scene bilder) comes the datepicker month, day, and year. I would like to know how to take the day, and leave only month and year. If you have it, thanks!

    
asked by anonymous 09.05.2016 / 02:56

1 answer

3

Take a look at this article . The part that sets the format you want is:

birthdayDatePicker.setDateFormat(new SimpleDateFormat("yyyy-MM-dd"));'
    
10.05.2016 / 02:44