Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   DecodeDateTime -> ERROR!!! (https://www.clubdelphi.com/foros/showthread.php?t=69553)

MikyVato 25-08-2010 14:58:51

DecodeDateTime -> ERROR!!!
 
Hola como estan, recurro de nuevo a uds ya que estoy utilizando el siguiente codigo para trabajar con fechas:
Código Delphi [-]
var
  wAnyo, wMes, wDia: Word;
  wHora, wMinutos, wSegundos, wMilisegundos: Word;
begin
  DecodeDateTime( StrToDateTime( '24/08/2007 12:34:53' ), wAnyo, wMes, wDia, wHora, wMinutos, wSegundos, wMilisegundos );
  Memo.Lines.Add( 'Día: ' + IntToStr( wDia ) );
  Memo.Lines.Add( 'Mes: ' + IntToStr( wMes ) );
  Memo.Lines.Add( 'Año: ' + IntToStr( wAnyo ) );
  Memo.Lines.Add( IntToStr( wHora ) + ' horas' );
  Memo.Lines.Add( IntToStr( wMinutos ) + ' minutos' );
  Memo.Lines.Add( IntToStr( wSegundos ) + ' segundos' );
  Memo.Lines.Add( IntToStr( wMilisegundos ) + ' milisegundos' );
end;

y me arroja el error [Error] Unit1.pas(41): Undeclared identifier: 'DecodeDateTime' es como si la funcion no existiera alguna sugerencia por favor??!!

Caro 25-08-2010 15:46:08

Hola MikyVato, debes añadir en uses la unit DateUtils.

Saluditos

MikyVato 25-08-2010 15:48:37

gracias !!! Solucionado


La franja horaria es GMT +2. Ahora son las 21:15:36.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi