Muy buenas foro, tengo que convertir una fecha y hora en formato timestamp
¿Tenéis un código por ahí?
Muchas Gracias
dDateTime := dtoc(date())+" "+Time()
dDate := TtoDate( oRs:Fields("DateTime"):Value )
//------------------------------
Function TtoDate( tDate )
If empty( tDate)
Return( ctod("00/00/00"))
Endif
If ValType( tDate ) = "D"
Return(tDate )
Endif
Return( stod( substr( ttos( tDate ), 1, 8 ) ))
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 39 guests