I use this code line. I’ve also tried the “yyyy/mm/dd” code.
[date date-892 date-format:yyyy-mm-dd min-date:today first-day:1 change-month placeholder “Dátum*”]
Hy karolycsucs,
I have the same problem for some webpage and form but just on hungarian language, as I can see you have the same problem for .hu language?
My ticket: https://ww.wp.xz.cn/support/topic/invalid-date-supplied-for-hungarian-language/#post-9589246
But still no answer or feedback what exactly to do 🙁 Hope we will find some solution for our problems.
Hi, I have the same problem, but as I read the tickets, it seems like the authors doesn’t really care about it. They closed the other ticket saying it’s spam, but had no interest in helping, not saying a single word. So is there a solution for this issue?
Hy webdirektinfo,
yes, I found a solution, but without the support and author. Here are the steps:
- Create a contact form for HU language
- install CUSTOM CSS & JS plugin, there go to add new “Add custom JS”
- add this code:
jQuery(document).ready(function( $ ){
jQuery(function($){
$('input[name="<strong>field_name_checkin_hu</strong>"]').datepicker({"dateFormat":"yyyy-mm-dd","firstDay":1,"changeMonth":true,"controlType":"slider","addSliderAccess":true,"sliderAccessArgs":{"touchonly":true},"stepHour":1,"stepMinute":1,"stepSecond":1,"minDate":"today"}).datepicker('option', $.datepicker.regional['en-US']).datepicker('option', 'minDate', "today").datepicker('option', 'maxDate', "").datepicker('refresh');
});
jQuery(function($){
$('input[name="<strong>field_name_checkout_hu</strong>"]').datepicker({"dateFormat":"yyyy-mm-dd","firstDay":1,"changeMonth":true,"controlType":"slider","addSliderAccess":true,"sliderAccessArgs":{"touchonly":true},"stepHour":1,"stepMinute":1,"stepSecond":1,"minDate":"today"}).datepicker('option', $.datepicker.regional['en-US']).datepicker('option', 'minDate', "today").datepicker('option', 'maxDate', "").datepicker('refresh');
});
});
</li>
</ol>
The problem solved with this. Just keep to adapt to your form names, I bolded the only 2 names that you need to change (field_name_checkin_hu, field_name_checkout_hu).
I hope it can help you.
Hope you solved it 🙂 Regards.
Hi @pshwebsite!
Thanks for posting the code. It works for me when I replace the field_name_checkin_hu and field_name_checkout_hu parts with my datetime name, but the resulting calendar is in English (except for the Hour and Minute part towards the bottom).
Whenever I add checkin_hu/checkout_hu or just _hu to the end of my datetime name, the calendar will switch back to Hungarian, but the date won’t validate.
I also tried modifying datepicker.regional['en-US'] to datepicker.regional['hu-HU'], which made the calendar in Hungarian, but still wouldn’t validate.
Any ideas? Thanks!
-
This reply was modified 8 years, 6 months ago by
miroslav.
-
This reply was modified 8 years, 6 months ago by
miroslav.
-
This reply was modified 8 years, 6 months ago by
miroslav.
-
This reply was modified 8 years, 6 months ago by
miroslav.