Dates

Today I added control for dates

edit dates

To my surprise, the format of the value is not the one coming out from toISOString, but instead a shorter version of it. Luckily it is quite similar, meaning that I was able to remove the last characters of the date and it works.

export const DateTimeInput = ({value,onUpdate,onChange,...props}) => {
    return <input
        {...props}
        value={value.toISOString().substring(0, 16)}
        type="datetime-local"
        onChange={(e) => onChange(new Date(e.target.value))}
      />
}

Weeks

Today's win was the display of the weeks. Now it starts looking more like a normal calendar:

week view

The week events are hardcoded for today. But if you want to visit day11.kalena.dev/life . Better with a desktop computer.

How it feels so far? Leave me a message at @guillermooo