<%@ Page language="c#" Codebehind="FromatDateTime.aspx.cs" AutoEventWireup="false" Inherits="CommonFunction.FromatDateTime" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>FromatDateTime</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体">
				<h2>控制时间字段的显示格式</h2>
				<asp:datagrid id="dgFormatDateTime" style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 48px"
					runat="server" Width="376px" AutoGenerateColumns="False" ToolTip="第一列为添加的自动标识列" CellPadding="4"
					BackColor="White" BorderWidth="1px" BorderStyle="None" BorderColor="#3366CC" Height="20px">
					<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
					<ItemStyle ForeColor="#003399" BackColor="White"></ItemStyle>
					<HeaderStyle Font-Bold="True" ForeColor="#CCCCFF" BackColor="#003399"></HeaderStyle>
					<FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
					<Columns>
						<asp:BoundColumn DataField="LastName" HeaderText="姓名"></asp:BoundColumn>
						<asp:BoundColumn DataField="FirstName" HeaderText="姓"></asp:BoundColumn>
						<asp:BoundColumn DataField="City" HeaderText="城市"></asp:BoundColumn>
						<asp:BoundColumn DataField="BirthDate" HeaderText="出生年月" DataFormatString="{0:d}"></asp:BoundColumn>
					</Columns>
					<PagerStyle HorizontalAlign="Left" ForeColor="#003399" BackColor="#99CCCC" Mode="NumericPages"></PagerStyle>
				</asp:datagrid></FONT></form>
	</body>
</HTML>
