public string Gettime( DateTime time)
<br> {
<br>
<br> return Convert.ToDateTime(time).ToShortDateString();
<br> // return DateTime.Now.ToShortDateString().ToString();
<br>
<br>
<br> }
<br>
<br>
<br>调用是 <asp

abel ID="JoinTime" runat="server" Text=<%# Gettime(Eval("JoinTime")) %>></asp

abel>
<br>怎么会出现
<br>
<br>Compilation Error
<br>Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
<br>
<br>Compiler Error Message: CS1502: 与“Soldier_SoldierList.Gettime(System.DateTime)”最匹配的重载方法具有一些无效参数