This library is using typescript.
npm i -D @kuanyu0729/svelte-date-picker
get selected date
case 1
<script>
import Calendar from "svelte-date-picker";
</script>
<Calendar on:SelectedDate={event => {
console.log(event.detail);
}}/>
case 2
<script>
import Calendar from "svelte-date-picker";
let date = new Date();
$: {
console.log(date);
}
</script>
<Calendar bind:date/>