Datepicker: howto set runtime date?

Hi all, I have tried for 2 days to link $datePicker to an html input type that when clicked show datePicker with the last date/time choice, without luck.

Can someone give me a code to see ?

M.