Date picker

0
can we make changes on the default component of mendix ( Date Picker ) ?? I mean put the years above inside the months  is it possible or not ?
asked
3 answers
1

To change the behaviour of a specific date field have a look at: https://docs.mendix.com/refguide/date-picker#2-6-1-date-format

To change this for the complete app goto your project settings and select the language to change the date and time formatting there.

answered
1

Erwin's tips make it possible to change how the format appears in the text.
But to change the way that the popup is set up can only be changed if you modify the widget. See https://mydemoversion8-sandbox.mxapps.io/ -> AppStoreApps -> Compare dateselectors for some examples of other widgets

answered
0

If it’s a small modification you can try to do it in javascript (with a javascript snippet)

here is the beginning (jquery enabled): 

$('.mx-dateinput-select-button').click(function()
{
var year = $('.dijitCalendarSelectedYear').text();
$('.dijitCalendarCurrentMonthLabel').prepend(year);
});

 

this will put the year before the month, but you will have to do the same logic when the user click elsewhere in the widget

Good luck

answered