2018-06-27, 18:24:56
(2018-06-27, 15:57:14)Bigin Wrote: I did some tests now and found this library: https://xdsoft.net/jqplugins/datetimepicker/
On GH: https://github.com/xdan/datetimepicker
This seems to be better solved than the one I suggested before. I have tested it with these settings and it all worked without errors:
Code:<script>
$(function() {
$.datetimepicker.setLocale('de');
// DateTimePicker
$('#datetime').datetimepicker({
i18n:{
de:{months:[
'Januar','Februar','März','April',
'Mai','Juni','Juli','August',
'September','Oktober','November','Dezember',
],
dayOfWeek:[
"So.", "Mo", "Di", "Mi",
"Do", "Fr", "Sa.",
]}
},
dayOfWeekStart: 1, // Monday
timepicker: true,
format:'Y-m-d H:i',
step: 5
});
});
</script>
I hope this helps
Nice solution.

My solution.... add 2 new fields
1 - name -> Text field
2 - date -> datepicker
3 - time -> Text field
4 - datetime ->text field
5 - datetimeJS ->chunk field
JS for datetimeJS
Code:
<script>
jQuery(document).ready(function () {
$( "#time, #dpdate" ).change(function() {
var date = $("#dpdate").val() + ' ' + $("#time").val() + ':00';
$( "#datetime").val(date);
});
});
</script>
When add date and time -> JSscript merge date and time -> add to datetime field
But... your solution ist better :

Thank you. Love your works.
Sorry but I'm .....
100% designer
90% html/css
60% php/js coder
