Solved

ASP.NET / SQL Server Express Locale / Date format settings

Posted on 2008-06-22
2
851 Views
Last Modified: 2013-11-07
We recently migrated servers and on the new server ASP.NET websites are displaying the time format incorrectly.

Not sure if this is a result of .NET settings or SQL Server settings, but basically any website using ASP.NET / SQL Server (Express) is displaying the date format as: MM-DD-YYYY.

However it should be using the DD-MM-YYYY setting instead. In the server's control panel regional settings, this has been setup.

Wondering if the .NET framework or SQL Server maintain their own locale settings somewhere and if so, where can I find these settings (I've looked but been unable to find it).

Also, SQL server is currently running as the "Local System" account, if that makes any difference.
0
Comment
Question by:bradderick
[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
2 Comments
 
LVL 5

Accepted Solution

by:
JuckMan earned 500 total points
ID: 21843393
it depend on where you are reading the datetime values from using .net method calls like Datetime.now or from the database.
If it is from database then use the following article to figure out what your current settings are and how to change it to a different one
http://www.karaszi.com/SQLServer/info_datetime.asp

hope this helps
0
 

Author Comment

by:bradderick
ID: 21843415
It's happening to values from the database - and on the old server this was fine.

Which is why I suspect maybe locale settings need to be changed in SQL server - but haven't been able to find where to do it from.

Note the server's locale settings (specified in the windows control panel) seem to be ignored by SQL server.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how the fundamental information of how to create a table.

730 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