
09/05/2003, 10:52
|
| | Fecha de Ingreso: mayo-2002
Mensajes: 35
Antigüedad: 22 años, 11 meses Puntos: 0 | |
Utiliza este codigo, funciona
antes del HTML
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>
function DoDateTime(str, nNamedFormat, nLCID)
dim strRet
dim nOldLCID
strRet = str
If (nLCID > -1) Then
oldLCID = Session.LCID
End If
On Error Resume Next
If (nLCID > -1) Then
Session.LCID = nLCID
End If
If ((nLCID < 0) Or (Session.LCID = nLCID)) Then
strRet = FormatDateTime(str, nNamedFormat)
End If
If (nLCID > -1) Then
Session.LCID = oldLCID
End If
DoDateTime = strRet
End Function
</SCRIPT>
y formatea el texto asi:
<%= DoDateTime((Recordset1.Fields.Item("Fecha").Value) , 2, 2070) %> |