Fórum Decodificação de data. #204292
05/01/2004
0
Estou quebrando a cabeça a horas e não consigo, se alguem puder me ajudar,[/b:9aed881d46]
Eduardo_lcouto
Curtir tópico
+ 0Posts
05/01/2004
Lucas Silva
var nome: String;
begin
nome := ´arquivo´+DateToStr(Date);
end;
Lucas!
Gostei + 0
05/01/2004
Aroldo Zanela
Pode detalhar melhor o que você quer? É gravar o arquivo com nome formado pela data atual?
Gostei + 0
05/01/2004
Motta
DateToStr ou DecodeDate
Label1.Caption := ´Today is ´ + DateToStr(Date);
procedure TForm1.Button1Click(Sender: TObject);
var
Present: TDateTime;
Year, Month, Day, Hour, Min, Sec, MSec: Word;
begin
Present:= Now;
DecodeDate(Present, Year, Month, Day);
Label1.Caption := ´Today is Day ´ + IntToStr(Day) + ´ of Month ´
+ IntToStr(Month) + ´ of Year ´ + IntToStr(Year);
DecodeTime(Present, Hour, Min, Sec, MSec);
Label2.Caption := ´The time is Minute ´ + IntToStr(Min) + ´ of Hour ´
+ IntToStr(Hour);
end;
Gostei + 0
06/01/2004
Eduardo_lcouto
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)