M mmcq3 Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-09 #1 如何将数据库中的日期取到DateTimePicker1.Date中!!!!!!
荷 荷塘新月 Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-09 #2 try DateTimePicker1.Date:=query1.fieldbyname('rq').asdatetime; except // end;
S sydan Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-09 #3 try DateTimePicker1.Date:=query1.fieldbyname('rq').asdatetime; except end; 這個就OK啦,,錯不了!
B bianlx Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-09 #4 改成下面的格式就行了: try DateTimePicker1.Date:=tdate(query1.fieldbyname('rq').asdatetime); except // end;
S sydan Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-09 #5 哦,忘了,如果你的字段輸入的是日期型數據,那麼你還要看DateTimePicker的Kind 屬性是不是DtkDate,因為否則你是看不到什麼的!
H hamsoft Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-09 #6 同意前面几位,但好像下句也可以,不妨一试,我没test过 DateTimePicker1.Date:=Table1['rq']