Hi,
I need to display date in a textbox fetching from the database :eek2:. I can get the date properly but i need to display it in dd-MMM-yyyy format in the textbox. can any one help me out to solve this
thanx
Printable View
Hi,
I need to display date in a textbox fetching from the database :eek2:. I can get the date properly but i need to display it in dd-MMM-yyyy format in the textbox. can any one help me out to solve this
thanx
Try:
DJCode:<asp:TextBox id="txtDate" Text=<%# DataBinder.Eval(Container.DataItem, "Date", "{0:dd-MMM-yyyy}" ) %> runat="server" />