Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display monthname in other language

Tags:

sql-server

In my view, I want to display the MonthName in German. How can I change the monthname from English to German. DATENAME(month, getdate()) AS 'MonthName'

like image 451
axur Sdaffv Avatar asked Sep 17 '15 10:09

axur Sdaffv


1 Answers

try:

see languages,

by SELECT * FROM sys.syslanguages

SET LANGUAGE Spanish
SELECT DATENAME(MONTH, GETDATE()) AS 'MonthName'

SET LANGUAGE German
SELECT DATENAME(MONTH, GETDATE()) AS 'MonthName'

SET LANGUAGE us_english
SELECT DATENAME(MONTH, GETDATE()) AS 'MonthName'
like image 88
A_Sk Avatar answered Sep 21 '22 21:09

A_Sk