Hi everyone, I made a query on SQL DB and the result of my alias field comes back to me in Italian.
When I view the result of the query on the page I get the resolution in English instead.
I tried to change the connect server settings by setting the timezone in OS_Default or Europe/Rome.
I also tried changing the timezone in the DB connection options but nothing changes.
Two suggestions: 1) Server-side
With the FORMAT() you can define language… SELECT FORMAT (getdate(), 'dddd, MMMM, yyyy','es-es') as date --Spanish
Check here:
2) Client-side by usinf moment.js:
-Your SQL contains only the actual date,
-create a custom formatter as described here:
and use the formatter to display the formatted date in your page