I am working on a project where i use a plugin that is using an datetimepicker, to enter a date and time. This is working great on desktop computer. You can choose your date and time in the same window.
But on mobile devices iphone and andriod, it is not looking good. And i cant find a option to choose between the native ios and andriod datetimepicker function.
Html
<input type="text" class="form-control" id="PickupTime" name="pick_up_time" placeholder="date">
Javascript
var dateTimeOptions = {
format: 'DD/MM/YYYY HH:mm',
sideBySide: true,
useCurrent: true,
minDate: minDate,
showClose: true,
showClear: true,
widgetPositioning: {
horizontal: dateTimePickerPosition
},
icons: {
up: 'fa fa-arrow-up',
down: 'fa fa-arrow-down',
previous: 'fa fa-chevron-left',
next: 'fa fa-chevron-right'
}
};
jQuery('#PickupTime').datetimepicker(dateTimeOptions);
Can someone help to solve this.