Skip to content

Add default date

Choose a tag to compare

@MohammadSadeghMehrafzoon MohammadSadeghMehrafzoon released this 12 Jul 13:32
· 5 commits to master since this release

You can provide a default date using separate year, month, and day values at the time of initialization. This allows the date picker to open with a pre-selected date, which is especially useful when editing previously saved user data.

If no default date is provided, the current system date will be used by default.

You can initialize the date picker with a pre-selected date by setting:

useInitialDate = true,
initialDate = Triple(1404, 6, 27)

useInitialDate: A boolean flag indicating whether to use a predefined date.
initialDate: A Triple<Int, Int, Int> representing the year, month, and day in the Persian calendar.