You don't. A DataTable should store DateTime values and they have no format. Format is only an issue when converting a DateTime value to a String, which 99 times out of 100 would be done in order to display it. If that is what you want to do then how you format the string depends on how it's being displayed.
well actually I could not find a way to format the date/time column of my database table in the datagrid in my compact framework app. so I thought might as well try to format it in the datatable itself before binding it to the data grid. ya i understand its not right.
well i guess i'll have find an alternative.
Last edited by sunshine123; Jun 18th, 2007 at 05:13 AM.