I am dynamically implementing the events in calendar using javascript.
Let me tell you how it actually build
- Clicking a button opens a BS 4 modal.
- Modal container daterangepicker ( I am using it just for date not for time )
- For selection of time I have added custom select options.
- add event fields name, description etc.
- after clicking the add button modal disapper and the event is successfully add.
So what's the problem.
The problem is when I statically add the event it gets me this ( The expected result );
But,,
When I try to do it dynamically it gets me this ( Non Expected result );
So to know that my time is implementing I have used eventClick();
which is in-built in fullcalendar
eventClick: function(info) {
console.log(info);
console.log(info.start._i);
console.log(info.end._i);
}
info.start._i
get the date with time as expected and info.end._i
get the date with time as expected. So why I am getting non expected result.