Author: info@technocore.co.za
Choose a custom Date range or one of the set options (e.g. 'Last 7 days')

if your Computer isn't running Windows or Linux when filling out the form, the Date field will change to the 'Datebasic'(see ObjFieldDatebasic) type (no lower limit on the date).
<input type="text" name="_form_Answer" class="form-control" id="_form_Answer" value="" size="50">
<script>$(document).ready(function() {$( "#_form_Answer" ).daterangepicker({ showDropdowns: true, showWeekNumbers: true, timePicker: false,startDate: '2022-11-03',endDate: '2022-11-03',
'locale': {
format: 'YYYY-MM-DD'
},
ranges: {
'Today': [moment(), moment()]
,'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')]
,'Last 7 Days': [moment().subtract(6, 'days'), moment()]
,'Last 30 Days': [moment().subtract(29, 'days'), moment()],
'This Month': [moment().startOf('month'), moment().endOf('month')]
,'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
},
});});</script>
cythonize -3 -a -i ObjFieldDaterange.py
Compiling /home/axion/projects/axion/factory.field/ObjFieldDaterange.py because it changed..[1/1] Cythonizing /home/axion/projects/axion/factory.field/ObjFieldDaterange.py
Updated : 2025-06-09