The initial value to show the user in the date-picker
. The value should be a valid Date
or DateTime
. You can also use Expression Language to format or extract an initial value from your existing models.
If not specified, the initial value is set to the current date.
The following example sets an initial date with Expression Language:
input-view{
...
render {
date-picker {
initial-value ("addDuration(now().date, 'P2D')") // Starts at 2 days from today
}
}
}
For an example of setting the initial value with default-init
, see Initializing Date & Time Concepts in the viv.time
documentation or the longer date-picker
usage example.
Copyright 2025 Samsung All rights reserved