I want to select a date column in specific format – suppose my date format is MM/dd/yyyy. I want to select it as dd/MMM/yyyy
I can do this by:
SELECT CONVERT(VARCHAR(11), myDateColumn, 106)
The problem is that I want to select it as type DATETIME, not VARCHAR because I want to sort my grid on this column.
I change the formt of date in grid_ColumnAdded event