Date Input Field using Pikaday

PHOTO EMBED

Wed Feb 21 2024 07:55:51 GMT+0000 (Coordinated Universal Time)

Saved by @sentgine #blade #php #laravel #html #livewire #alpinejs

<input                       
    type="text" 
    placeholder="Start date" 
    class="px-2 py-1 text-sm rounded text-gray-800" 
    x-init="new Pikaday({ field: $el })"
    x-on:change="$wire.startDate = formatDateToYYYYMMDD(new Date($el.value))"
/>
content_copyCOPY