I
am working on syncfusion schedule control to manage events. While adding
or editing events we have in built popup with required fields for events.
My
Question is:
Is
there any way to customize the from and to date formats? (For example I want
the format to be like - November 11, 2020 6:00am)
|
@(Html.EJS().Schedule("schedule")
.Height("550px")
.DateFormat("MMMM dd, yyyy")\
.
.
) |
|
<script type="text/javascript">
function onPopupOpen (args) { if (args.type === 'Editor') { var startElement = args.element.querySelector('#StartTime'); if (!startElement.classList.contains('e-datetimepicker')) { new ej.calendars.DateTimePicker({ format: 'MMMM dd, yyyy hh:mm a', value: new Date(startElement.value) || new Date() }, startElement); } var endElement = args.element.querySelector('#EndTime'); if (!endElement.classList.contains('e-datetimepicker')) { new ej.calendars.DateTimePicker({ format: 'MMMM dd, yyyy hh:mm a', value: new Date(endElement.value) || new Date() }, endElement); } } } </script> |