MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old April 8th, 2004, 04:37 AM
gregdius gregdius is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 51 gregdius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 30 m 29 sec
Reputation Power: 5
Incorrect datetime settings on SQL Server 2K.

Hi,

Ok ive been running a classic ASP application locally and i've been using:

session.lcid=2057 to format my dates to uk time (DD/MM/YYYY HH:MM:SS). This works fine on my local machine however when I upload it to the server it comes out as MM/DD/YYYY HH:MM:SS even with this option enabled.

Im running SQL server 2000.

What's weird is if i return the current web server time just by using the now() function it displays it correctly...

But if I try to input the server time using an UPDATE statement into a datetime field, it formats it incorrectly. This is only on the web server, on my local machine it works fine.

Could it be something to do with the datetime settings on the server?

I have checked the timezone settings on the web server and they are set to the UK.

Any help or suggestions appreciated.

Reply With Quote
  #2  
Old April 8th, 2004, 04:49 AM
gregdius gregdius is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 51 gregdius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 30 m 29 sec
Reputation Power: 5
No matter I have worked it out... the user was setup as english and not British English under security/logins

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Incorrect datetime settings on SQL Server 2K.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway