How to set the dateformat in datepicker for a portal template? The problem is that now it's set per user so I have problems in the controller converting into a datetime object, because the format is not constant and I don't want to have 100 elifs to guess the date format.
< i-n-p-u-t type="text" name="date_from" class="form-control o_website_form_date" style="max-width: 200px;" required="required"/>
I've tried to add:
$('.datepicker').datepicker({
format: 'dd.mm.yyyy',
});
and a few other things and none of them worked.
What's wrong with this new text field, that posting code from portal qweb templates isn't possible!!!! That's why the input has '-' between letters.