Possible Duplicate:
extract the date part from DateTime in C#
I have this code that display the date.
DateTime dt = DateTime.ParseExact(date1,"ddMMyy",System.Globalization.CultureInfo.CurrentCulture);
And it gives me an output of 6/12/2012 12:00:00 AM.
But what I need to display is the date only, how can I remove the time so that the only one to be display is the date?