Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > SQL
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

 
 
Herramientas Buscar en Tema Desplegado
  #2  
Antiguo 05-12-2003
Avatar de Investment
Investment Investment is offline
Miembro
 
Registrado: may 2003
Posts: 378
Poder: 22
Investment Va por buen camino
Truco 78 del trucomania (espero que te sirva):

Hallar el numero de semana del año de una fecha


Código:
   
   procedure TForm1.Button1Click(Sender: TObject);
    var  
        frstDay,toDay : TDateTime;  
        week : Integer;
    begin 
       frstDay := StrToDate('1/1/96');
       toDay := StrToDate(Edit1.Text);
       week := Trunc((toDay - frstDay) / 7) + 1;
       Label1.Caption := IntToStr(week);
    end;
__________________
Saludos,
Peter Investment
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 15:58:23.


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
Copyright 1996-2007 Club Delphi