Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/09/2010, 09:48
josejasc
 
Fecha de Ingreso: septiembre-2010
Mensajes: 1
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: Mostras fechas con FPDF en asp

Cita:
Iniciado por durkis Ver Mensaje
La solución que consegui fue la siguiente

Actual = Date();
this.Cell(10);
this.Cell(100,5,Actual,0,0,'C');
this.Ln();

Ahora el inconveniente que se me presenta es que la fecha me aparece de la siguiente forma:
Mon Aug 23 14:42:39 2010
¿Como hago para que se muestre 23/08/2010 ?
Créate una función en asp para formatearla

Por ejemplo


Function FechaPDF(vblefecha)
numerodia=day(vblefecha)
if numerodia<10 then
numerodia="0" & numerodia
end if

numeromes=month(vblefecha)
if numeromes<10 then
numeromes="0" & numeromes
end if

FechaPDF= numerodia & "/" & numeromes & "/" & year(vblefecha)
End Function



Luego, para incluirlo en el PDF

Actual = Date();
this.Cell(10);
this.Cell(100,5,FechaPDF(Actual),0,0,'C');
this.Ln();