0

I have a textbox in a template field in Gridview.

It is bound using

'<%# Bind("DateToBeAdded") %>'

How can I format the value in the text box to the current culture on the machine?

I tried

'<%# Bind("DateToBeAdded","{0:d}") %>'

But this does not seem to be allowed

wingyip
  • 3,295
  • 2
  • 29
  • 51
  • 1
    http://stackoverflow.com/questions/14625087/asp-net-gridview-bind-dateformat-not-working-with-update – ray Mar 13 '14 at 11:10
  • http://stackoverflow.com/questions/3974481/format-date-in-bind-statement-inside-a-listview – ray Mar 13 '14 at 11:10

0 Answers0