W wuqinqin Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-09 #1 网络授时服务器端 如何将发送给客户端的 日期格式2005-5-2转化为2005-05-02的格式,
W wuqinqin Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-09 #2 网络授时服务器端 如何将发送给客户端的 日期格式2005-5-2转化为2005-05-02的格式,
W wjava Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-09 #3 select convert(char(10),getdate(),120) as date1 然后提取date1字段即可
L LSUPER Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-09 #4 =^0^= procedure TForm1.Button1Click(Sender: TObject); var ndatatime: TDateTime; begin ndatatime := StrToDate('2005-5-2'); Caption := FormatDateTime('yyyy-mm-dd', ndatatime); end;
=^0^= procedure TForm1.Button1Click(Sender: TObject); var ndatatime: TDateTime; begin ndatatime := StrToDate('2005-5-2'); Caption := FormatDateTime('yyyy-mm-dd', ndatatime); end;
X xianguo Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-09 #5 s1, s2 : String; s1 := '2005-5-2'; s2 := FormatDatetime('YYYY-MM-DD', StrToDate(s1)); //s2 := '2005-05-02';
s1, s2 : String; s1 := '2005-5-2'; s2 := FormatDatetime('YYYY-MM-DD', StrToDate(s1)); //s2 := '2005-05-02';