Hi,
I have the date stored in the database in the format of YYYY-MM-DD HH:MM:SS (i.e. 2011-12-20 00:00:00)
However, when I retrieve it, I want to display it in a lable control as 12/20/2011 and I was trying to do it as follows:
labelControl.text = DateValue.ToString("d", Globalization.CultureInfo.CreateSpecificCulture("en-US"))
but this gives an error Error :Overload resolution failed because no accessible 'ToString' accepts this number of arguments.
Any ideas on how to accomplish this?
...
Go to the complete details ...