Solved

Retrieved date from MsSQL in French

Posted on 2012-03-20
3
265 Views
Last Modified: 2012-06-27
Hello,

When I retrieve a datetime field from MsSQL, it appears in French e.g. 20/mars/2012 9:03. Anyone know how to sort this out. I have tried the code date_default_timezone_set('GMT'); but didn't work. Any suggestions?
0
Comment
Question by:previewservices
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Accepted Solution

by:
armchair_scouse earned 500 total points
ID: 37741533
According to the web, to change the server language to British English, you'd use

EXEC sp_configure 'default language', 23
RECONFIGURE

Run to verify: SELECT @@language, @@langid

To change the language of a particular login to britsh english, use
EXEC sp_defaultlanguage 'username', 'british'

Alternatively, handle dates in the YYYY-MM-DD format, which I believe is the ISO standard, and therefore you'd have no problems with whatever language setting your scripts run under.
0
 
LVL 30

Expert Comment

by:IanTh
ID: 37741536
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 37741736
0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
This article discusses how to implement server side field validation and display customized error messages to the client.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question