How to retrieve the date from the Calendar UI for custom API

Hello,

I created a Custom API and need and want to use the builtin Calendar UI for the date selection. How do I do that?

Thanks
Khanh