How to append an element <p> in the .selected .endRange <span>?
I've tried append a <p> element to customize the .selected .endRange <span> style, like the picture below, but I can't find where this <span> was created in the core.
I created a "ghost" element in Chrome Dev Tools to simulate what I want to do.

Anyone could help me?
Hello,
How are you trying to append it? Are you using https://chmln.github.io/flatpickr/events/#ondaycreate ?
Hi @chmln,
Here's the solution that I found couple days ago:
function createDay(className, date, dayNumber, i) {
var dateIsEnabled = isEnabled(date, true), dayElement = createElement("span", "flatpickr-day " + className);
dayElement.innerHTML = '<p class=finalDateClass>' + date.getDate().toString() +'</p>';
dayElement.dateObj = date;
dayElement.$i = i;
dayElement.setAttribute("aria-label", self.formatDate(date, self.config.ariaDateFormat));
if (compareDates(date, self.now) === 0) {
self.todayDateElem = dayElement;
dayElement.classList.add("today");
I don't mind if this was the best approach but it's solved my problem :)
Glad you figured it out.
I'd still recommend using onDayCreate, which gives you access to dayElement, but its up to you.