Last post May 24, 2007 01:57 AM by Kevin Yu - MSFT
May 22, 2007 02:12 AM|priyank.kansal|LINK
I need to change the culture of my data table.
I have a "createdOn" field in my data Table. Which contains the dateTime in EN-US Culture.
but i want to make it in EN-GB CULTURE.
how will it be possible for all the data in that field of the data table using culture?
May 24, 2007 01:57 AM|Kevin Yu - MSFT|LINK
To change the locale info of a column, you will have to change the locale info of the whole DataTable using DataTable.Locale Property.
Here is an example
CultureInfo myCultureInfo = new CultureInfo("en-gb");
table.Locale = myCultureInfo;
Please check the following link for more information:
HTH. If this does not answer your question, please feel free to mark the post as Not Answered and reply. Thank you!