<table width="800" align="center" border="1">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr>
<td width="30">ID</td>
<td width="400">标题</td>
<td width="200">日期</td>
<td width="170">日期</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%#Eval("Info_ID")%></td>
<td><%#Eval("InfoTitle")%></td>
<td><%#Eval("DateAndTime")%></td>
<td><%#Eval("DateAndTime","{0:d}")%></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr>
<td width="30">ID</td>
<td width="400">标题</td>
<td width="200">日期</td>
<td width="170">日期</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%#Eval("Info_ID")%></td>
<td><%#Eval("InfoTitle")%></td>
<td><%#Eval("DateAndTime")%></td>
<td><%#Eval("DateAndTime","{0:d}")%></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
或者:
<table width="800" align="center" border="1">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr>
<td width="30">ID</td>
<td width="400">标题</td>
<td width="220">日期</td>
<td width="150">日期</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%#Eval("Info_ID")%></td>
<td><%#Eval("InfoTitle")%></td>
<td><%#Eval("DateAndTime")%></td>
<td><%#Eval("DateAndTime","{0:yyyy/MM/dd}")%></td>
</tr>
</ItemTemplate>
</asp:Repeater>
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr>
<td width="30">ID</td>
<td width="400">标题</td>
<td width="220">日期</td>
<td width="150">日期</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%#Eval("Info_ID")%></td>
<td><%#Eval("InfoTitle")%></td>
<td><%#Eval("DateAndTime")%></td>
<td><%#Eval("DateAndTime","{0:yyyy/MM/dd}")%></td>
</tr>
</ItemTemplate>
</asp:Repeater>
gridview 中
<asp:BoundField DataField="日期" DataFormatString= "{0:yyyy-MM-dd} " HeaderText="日期" >
</asp:BoundField>
</asp:BoundField>