Ver Mensaje Individual
  #5  
Antiguo 19-02-2004
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Prueba esta función:

Código:
function StringToDate(S: String): TDate;
var
  Coma: Integer;

begin
  Coma := Pos(',', S);
  if Coma = 0 then
    raise Exception.Create('Formato inválido');

  Delete(S, 1, Coma);
  ActiveX.VarDateFromStr(S, 0, 0, Double(Result));
end;
Deberás incluir la unidad ActiveX en tu proyecto.

// Saludos
Responder Con Cita