Jump to content

Recommended Posts

Posted

Hi everybody,

Is it possible to change the the format on the MOBILE datepicker to example "2016 June 20"  when accessing the control in runtime, can't see anywhere to change this except for the displaying the date in the control. Right now it's showing "June 23 2016"

 

Best Regards

Christian

Posted

Hi,

 

For now try:

 

UnimDatePicker->ClientEvents->UniEvents-> beforeInit fn:

function beforeInit(sender, config)
{
    config.picker = {
        slotOrder: [
            'year',
            'month',
            'day'
        ]
    }
}

Best regards.

Posted

Works great, thank you, I also have two follow up question about the datetime picker. 

 

1) Is it possible to change the language so the months can show in for example swedish instead of english. 

 

2) I'm also trying to change the range for the year, i saw that there is a minYear and maxYear property but if i change minYear = 2015 and maxYear= 2050 i still get 2016 as the maxYear? 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...