Data
Bom dia galera !!
Estou usando o componente datetimepicker para ´pegar´ a data.
Só que ele me retorna um numero real.
Comoi faço pra converter esse real para data(timestamp).
Até mais !!!
Estou usando o componente datetimepicker para ´pegar´ a data.
Só que ele me retorna um numero real.
Comoi faço pra converter esse real para data(timestamp).
Até mais !!!
Anonymous
Curtidas 0
Respostas
Softwork
12/02/2003
Basta utilizar a função: [b:80189338ef]DateTimeToStr[/b:80189338ef]
...
MyDate : String;
begin
MyDate := [b:80189338ef]DateTimeToStr[/b:80189338ef](DateTimePicker1.Date)
end;
...
...
MyDate : String;
begin
MyDate := [b:80189338ef]DateTimeToStr[/b:80189338ef](DateTimePicker1.Date)
end;
...
GOSTEI 0
Okama
12/02/2003
REAL???? O COMPONENTE ENDOIDOU???
Var DATA:TDate;
HORA: TTime;
begin
DATA:= DateTimePicker1.Date;
HORA:=DateTimePicker1.Time;
Showmessage( ´Data: ´+FormatDateTime(´dd/mm/yyyy´, DATA));
Showmessage( ´Hora: ´+FormatDateTime(´hh:mm:ss:zzz´, HORA));
Var DATA:TDate;
HORA: TTime;
begin
DATA:= DateTimePicker1.Date;
HORA:=DateTimePicker1.Time;
Showmessage( ´Data: ´+FormatDateTime(´dd/mm/yyyy´, DATA));
Showmessage( ´Hora: ´+FormatDateTime(´hh:mm:ss:zzz´, HORA));
GOSTEI 0