I have a date in the database I am currently casting to get a more readable format. However I want to get two digits for the hour, minute and second. How do I do that. Also, is there a way to do it without using all the casts? What's the most efficient way to do this?Here is my current code:select cast(datename(mm,enddate) as varchar)+' '+ cast(datepart(d,enddate) as varchar)+', '+cast(datepart(yy,enddate) as varchar)+' '+cast(datepart(hh,enddate) as varchar)+':'+cast(datepart(minute,enddate) as varchar)+':'+cast(datepart(second,enddate) as varchar)from reportSchedules2
Craig Greenwood