_DIARYDATE is a system variable, you don't really need the calendar to use it.
You can use:
thisform.caption = DTOC(_DIARYDATE)
Without bring up the calendar.
The problem with the calendar is, that is not top-level (or in other words once you bring up, the code continues and does not allow you to choose a date to set the caption). So ou may have to do it in two steps:
one button that brings the calendar and another button to set the caption after the dat was selected.
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first.