Denna kod har jag nu, hur blir den med din lösning toha?
<% response.buffer = TRUE %>
<%
Set Connection = Server.CreateObject("ADODB.Connection")
Connection.Open "databas"
Set rs = Connection.Execute("SELECT *, Format$([datum],'yyyy/mm/dd hh:mm') AS formdatum FROM xxx Order by Id desc")
%>
<html>
<head>
<title></title>
</head>
<body>
Datum:<%= rs("FormDatum")%><br>
<%
For Slinga = 1 To 1
If poster.EOF Then
Exit For
End If
Next
%>
</body>
</html>
<% response.buffer = TRUE %>
<%
Set Connection = Server.CreateObject("ADODB.Connection")
Connection.Open "databas"
Set rs = Connection.Execute("SELECT *, Format$([datum],'yyyy/mm/dd hh:mm') AS formdatum FROM xxx Order by Id desc")
%>
<html>
<head>
<title></title>
</head>
<body>
Datum:<%=convDate(rs("FormDatum"))%><br>
<%
For Slinga = 1 To 1
If poster.EOF Then
Exit For
End If
Next
Function convDate(ByVal dDate) convDate = Day(dDate) & "/" & Month(dDate) & " -" & Right(Year(dDate), 2) & " kl. " & Left("0" & Hour(dDate), 2) & ":" & Left("0" & Minute(dDate), 2)
End Function
%>
</body>
</html>
------------------
------------------- What a waste it is to lose one's mind. Or not to have a mind is being very wasteful. How true that is.
Dan Quayle
[Redigerat av emission den 16 okt 2000]
132 ms totalt · 3 externa anrop · v20260731065814-full.4bcf49fe