S scu006 Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-03 #1 怎样将日期和时间转化为整数<br>如2006-3-2 13:25:35<br>转化为200632132535<br>谢谢了
R ron_xin Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-03 #4 procedure TForm1.Button1Click(Sender: TObject);<br>begin<br> Edit1.text :=FormatDateTime('yyyymmddhhmmss',now);<br>end;<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br> Edit1.text :=FormatDateTime('yyyymmddhhmmss',strtodatetime('2006-3-2 13:25:35'));<br>end;
procedure TForm1.Button1Click(Sender: TObject);<br>begin<br> Edit1.text :=FormatDateTime('yyyymmddhhmmss',now);<br>end;<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br> Edit1.text :=FormatDateTime('yyyymmddhhmmss',strtodatetime('2006-3-2 13:25:35'));<br>end;
J jennykiller Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-03 #5 你这样的转换有什么意义吗?<br>FormatDateTime()<br>然后把fotmat后的字符串再转换成整数。
W weichao9999 Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-03 #7 FormatDatetime('YYYYMDhhssmm',strtodatetime('2006-3-2 13:25:35'))