'week': text ~> ^ .'Kalender'.'Kalender'.'Weken'[]
'van': number 'datum' @default: from 'datum en tijd' now
'tot': number 'datum' = add ( .'van', ^ .'Presets'.'weekdagen' )
is it possible to fill attribute ‘van’ filled with the date of the first day of ‘week’ ?
for now ‘van’ will be (first time) filled with the current date, but I would like it when it would be filled with the the date of the first day of the selected ‘week’
Are you using our standard ‘calendar’ interface to retrieve data about years, weeks and days? Because that interface already contains a reference 'Eerste dag' on every entry from the collection 'Weken' which you can use to get to a number property with the actual date (or datetime, in midnight UTC). That should enable you to perform the rest of your calculations.
I am indeed use our standard calendar, i don’t know what version 2022.1 or 2023.1
I know there there is a reference eerst day, but I want that date placed in ‘van’ but I don’t know how.