JuliaPluto / PlutoUI.jl

https://featured.plutojl.org/basic/plutoui.jl
The Unlicense
299 stars 54 forks source link

TimeField and DateField that return a `Dates.Time` and `Dates.Date` #169

Closed fonsp closed 2 years ago

fonsp commented 2 years ago

We already have a TimeField widget that returns the selected time as a String (boooo), which was the only possibility last year.

Since #148 , it is possible to transform a value before assigning it to the bound julia variable. For example, take a look at https://github.com/JuliaPluto/PlutoUI.jl/pull/168

This means that we can create a new TimeField and DateField that return the Julia date and time fields directly!

Let's call it TimePicker and DatePicker to avoid breaking the existing functions.

icweaver commented 2 years ago

Okie doke, just opened!