In v3, there is some dialog fragment support allowing databinding.
However, for now, the easiest way to do what you want to do is:
- when you create the dialog set the datetime using ViewModel.MyDateTimeProperty
- within the dialog show the datepicker and listen for changes
- when you want to - either live during changes or on OK - then write the value back to ViewModel.MyDateTimeProperty