/    Sign up×
Community /Pin to ProfileBookmark

flatpickr convert numbers as dates

Hello,
I’m using the calendar icon flatpickr next to manual search input but I can’t solve a problem
When I want to do a manual search with product code “1636835408” it converts “1638-11-08” as a date
How do I disable this conversion?

Date searches when I select calendar
So, all others are working fine

“`
<div class=”smallfont flatpickr” data-allow-input=”true” data-wrap=”true” data-click-opens=”false” style=”float:right; padding-top: 6px;padding-right: 6px;padding-bottom: 5px;”>

<a data-clear=”” title=”İçeriği Temizle”><img alt=”Temizle” src=”images/x.png” style=”width: 18px; height: 18px; cursor: pointer;” /></a>
<a data-toggle=”” title=”Bir Tarih Seç”><img alt=”Tarih Seç” src=”images/calender.png” style=”width: 19px; height: 19px; cursor: pointer;” /></a>

<input data-input=”” type=”text” autocomplete=”off” class=”bginput” id=”search” list=”aranacaklar” placeholder=”İçerik Ara / Çift Tıkla”>
</div>
“`

“`
flatpickr(“.flatpickr”, {
“locale”: “tr”,
disableMobile: true,
allowInvalidPreload: true,
dateFormat: “Y-m-d”,
enable: [ <?php echo $selected_dates; ?> ]
});
“`

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @gecekule spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.23,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...