showmessage(datetimetostr(datetimepicker1.Date));
试一试这句,看一看