<asp:DropDownList ID="DropDownList1" runat="server" DataTextFormatString="{0:hh:mm tt}">
String.Format("{0:t}", datetime); Output "4:05 PM" .
String.Format("{0:T}", datetime); output "4:05:07 PM".
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)