Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lara28580's avatar

Someone knows good tailwind datepicker js plugin

I am looking for a tailwind datepicker plugin. Would be great if someone could tell me a good one. I already tested flowbit https://flowbite.com/docs/plugins/datepicker/ but somehow its not really customizeable. For example how to change the dateformat? Help is appreciated

0 likes
10 replies
Nihir's avatar

Hi @smoketm, you can surely get the value in the yyyy-mm-dd formate.

If you need to change or customize, you must read the documentation. second you can change and customize the formate from the backend using some settings which store your data in that formate in which you define the model or cotroller

1 like
Tray2's avatar

Can't you just use the default one the browser provides?

<input type="date" name="released" id="released" required>
1 like
lara28580's avatar

@Tray2 I think thats not the best ux you can get. Is there no backward compatibility problem? (older Browsers)

lara28580's avatar

Thanks for the answers! The Problem is I tried it already with different date formats but no success. So what I did

<input datepicker datepicker-format="dd.mm.yyyy" value="{{ Carbon\Carbon::now()->format('m/d/Y') }}" type="text" >

output

08/12/2023
Sinnbeck's avatar

@SmokeTM why not try with the default date format?

Carbon\Carbon::now()->toDateString()
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

@SmokeTM maybe the format needs to fit the value. Try making them the same (remember php format isn't the same as js)

1 like

Please or to participate in this conversation.