ciao a tutti...
vorrei visualizzare la data in formato 11-nov-2005 in questo record:
<%= DoDateTime((listacomunicati.Fields.Item("data").Va lue), 2, -1) %>
ma non so che opzioni cambiare...
ciao a tutti...
vorrei visualizzare la data in formato 11-nov-2005 in questo record:
<%= DoDateTime((listacomunicati.Fields.Item("data").Va lue), 2, -1) %>
ma non so che opzioni cambiare...
DoDateTime cosa sarebbe?
Roby
www.creamweb.it [v. 3.0]
:: Script ASP!
:: Web directory gratuita!
:: Campioni del mondo!
ah già...ecco lo script
<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>
Per formattare la data puoi usare uno di questi formati:
http://www.w3schools.com/vbscript/fu...atdatetime.asp
Roby
www.creamweb.it [v. 3.0]
:: Script ASP!
:: Web directory gratuita!
:: Campioni del mondo!