FormatDateTime problem
Hvorfor viker dette ikke? Problemet er FormatDateTime, som ellers skulle være i System.IO, men kompileren brokker sig:<%@ Page Language="C#" %>
<%@ import Namespace="System.IO" %>
<script runat="server">
void Page_Load(Object peter, EventArgs e)
{
string path = Server.MapPath("webdesign.aspx");
FileInfo fi1 = new FileInfo(path);
DateTime dtLastModified = fi1.LastWriteTime;
Literal1.Text = ""+FormatDateTime(dtLastModified, DateFormat.LongDate);
}
</script>
<html>
<head>
</head>
<body>
<form runat="server">
<asp:Literal id="Literal1" runat="server"></asp:Literal>
</form>
</body>
</html>