DateTime _Oct2007
-
hi.... Now displaying date like 10-2007 but I want to display Oct-2007.in Sql Query..anybody know plz reply me..
Rajendran
-
hi.... Now displaying date like 10-2007 but I want to display Oct-2007.in Sql Query..anybody know plz reply me..
Rajendran
-
hi soni Uma....Thanks for reply..... I want to display only the month and year..(Oct-2007) if u know that plz reply me.. see the following code...thats i have used...but its displaying 10-2007.... select Cast(DatePart(month,RenewalBaseMonth) as varchar) + '/' +Cast(DatePart(year,RenewalBaseMonth) as varchar) as RenewalBaseMonth from #temp21 Thanks
Rajendran
-
hi soni Uma....Thanks for reply..... I want to display only the month and year..(Oct-2007) if u know that plz reply me.. see the following code...thats i have used...but its displaying 10-2007.... select Cast(DatePart(month,RenewalBaseMonth) as varchar) + '/' +Cast(DatePart(year,RenewalBaseMonth) as varchar) as RenewalBaseMonth from #temp21 Thanks
Rajendran
Hi, Try this select Cast(DateName(month,RenewalBaseMonth) as varchar(3)) + '/' +Cast(DatePart(year,RenewalBaseMonth) as varchar) as RenewalBaseMonth from #temp21 Senthil -- modified at 8:15 Tuesday 30th October, 2007
-
hi soni Uma....Thanks for reply..... I want to display only the month and year..(Oct-2007) if u know that plz reply me.. see the following code...thats i have used...but its displaying 10-2007.... select Cast(DatePart(month,RenewalBaseMonth) as varchar) + '/' +Cast(DatePart(year,RenewalBaseMonth) as varchar) as RenewalBaseMonth from #temp21 Thanks
Rajendran
-
Hi, Try this select Cast(DateName(month,RenewalBaseMonth) as varchar(3)) + '/' +Cast(DatePart(year,RenewalBaseMonth) as varchar) as RenewalBaseMonth from #temp21 Senthil -- modified at 8:15 Tuesday 30th October, 2007
-
Pls rate my answer if it is working well Senthil
-
Ok This is work fine select DATENAME(MONTH,GETDATE()) + '/' + Cast(DatePart(year,getdate()) as varchar):) Have nice time
-
Pls rate my answer if it is working well Senthil
-
Pls rate my answer if it is working well Senthil
-
Hi Rajendran, I am working in Pricol Ltd, Coimbatore as Dev lead. How about u? Senthil
-
I am sorry Andy. Senthil