No, not personally, but date conversion.
I have this lovely bit of code to convert date
SELECT convert(varchar,convert(varchar,datepart(mm,tmpdate))+ '/' + convert(varchar,datepart(dd,tmpDate),101) + '/' + convert(varchar,datepart(yyyy,tmpdate)),101) AS TheDate from tmpTbl
but I noticed that any day or month numbered between 1 and 9 displays as 1/1/2006 but I would like it to show as 01/01/2006 Is there any way of making the day and month double digits ?
Thanks,
Mitch..........
I have this lovely bit of code to convert date
SELECT convert(varchar,convert(varchar,datepart(mm,tmpdate))+ '/' + convert(varchar,datepart(dd,tmpDate),101) + '/' + convert(varchar,datepart(yyyy,tmpdate)),101) AS TheDate from tmpTbl
but I noticed that any day or month numbered between 1 and 9 displays as 1/1/2006 but I would like it to show as 01/01/2006 Is there any way of making the day and month double digits ?
Thanks,
Mitch..........
Last edited: