Removing time from datetime in drop-down list

KristenL

New Member
My drop-down box displays the results from a database query (using: ddl.DataTextField = "Date"), but the datatype is datetime so it shows both the date and the midnight hour. I only want the date to display - can anyone help?change the data type to datetime(8) or something.<BR><BR>KarlThanks, but it already is datetime(8). I think the problem is that in regular old ASP, the drop-down list would just default to date only, but in .Net, it displays the time, too. I need to find a way to programmatically make it display the date only.
 
Back
Top