how to distinct a datetime

Newbie Member
18Nov2008,13:15   #1
Harrysuke's Avatar
can i know how to distinct datetime in sql so that i can populate my combo1.additem from January to December?
Team Leader
18Nov2008,18:43   #2
pradeep's Avatar
Code: SQL
SELECT DISTINCT CONVERT(char,myDate,1) FROM myDataTable