Author: Max@technocore.co.za
Choose a date from a drop down Calendar. Default Value is Today's Date.

if your Computer isn't running Windows or Linuxwhen filling out the form, the Date field will change to the 'Datebasic'(see ObjFieldDatebasic) type(Format will become: YYYY-MM-DD)
<input type="hidden" name="_form_Answer" class="form-control" id="_form_Answer" value="2022-10-28">
<input type="text" name="_form_Answerdatedisplay" class="form-control" id="_form_Answerdatedisplay" value="" size="50">
<script>$(function() {$('#_form_Answerdatedisplay').on('change',function(){
vl = $('#_form_Answerdatedisplay').val();
vlparts = vl.split("-");
vl2 = vlparts[2]+"-"+vlparts[1]+"-"+vlparts[0];
$('#_form_Answer').val(vl2);
});$( '#_form_Answerdatedisplay' ).daterangepicker({ singleDatePicker: true, showDropdowns: true, showWeekNumbers: true, timePicker: false,
'singleDatePicker': true,
'autoApply': false,
'locale': {
format: 'DD-MM-YYYY'
}
});
});</script>
cythonize -3 -a -i ObjFieldDateddmmyyyy.py
Compiling /home/axion/projects/axion/factory.field/ObjFieldDateddmmyyyy.py because it changed..[1/1] Cythonizing /home/axion/projects/axion/factory.field/ObjFieldDateddmmyyyy.py
Updated : 2025-06-09