Ver Mensaje Individual
  #2  
Antiguo 28-07-2025
cloayza cloayza is offline
Miembro
 
Registrado: may 2003
Ubicación: San Pedro de la Paz, Chile
Posts: 947
Reputación: 25
cloayza Tiene un aura espectacularcloayza Tiene un aura espectacular
Estimado colega para eso utilice la siguiente función

Código Delphi [-]
uses System.DateUtils;
{$R *.dfm}

procedure TForm1.CheckBox1Click(Sender: TObject);
begin
     if TCheckbox(Sender).Checked then
        edit1.text:= DateToISO8601(Now(), TCheckbox(Sender).Checked)
     else
         edit1.text:= DatetoStr(Now());

end;
Saludos cordiales
Responder Con Cita