22
Views
1
Comments
Solved
[Silk UI Platform] Calendar javascript supported dateformats
Question
I've got the impression that I could use all kinds of dateformats based on the mouseover in the DateFormat field of the Silk UI Calender widget, but when I look at the JavaScript in the widget I can see that for instance a call to the function convertDateToInt more or less only supports D/M/Y or variants of that. When I want to use for instance monthnames in the dateformat (%b or %B) it is failing, because of substring(0,10) in a call to that function. When I have a monthname in the editfield where the calendar should pick it's date it is not working.
Also failing when using datenames (%a, %A)
So I'm now limited to D/M/Y or any combination of D, M and Y and other characters are not supported unfortunately.
Also support for 'exotic' dateformats like time first and then date is not supported because of the substring(0,8) constructions in the script, so it looks to me there is some work to be done here.
2018-05-03 15-48-34
Samuel Jesus
Staff
Solution
Hello Peter,

Thank you for the feedback. I'm adding these issues to our backlog for further analysis.

For now if this is a showstopper, as a workaround, I would recommend that you test the input_calendar from Richwidgets. Although the styles are diferent, the date formats are working properly.

Best Regards,
Samuel Jesus
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.