Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - SQL Server Date Format
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SQL Server Date Format

 Post Reply Post Reply
Author
ScottM View Drop Down
Newbie
Newbie


Joined: 28 July 2003
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote ScottM Quote  Post ReplyReply Direct Link To This Post Topic: SQL Server Date Format
    Posted: 05 October 2010 at 4:02pm
This is most probably a really basic question but as it's been a really busy week so far and it's only Tuesday... I'll go ahead and ask it anyway.

I have an SQL Server database on mssql2 in which I have created a column of type 'datetime' - the default binding is set to GETDATE() but when I add a record allowing the default date to be added, the date is formatted in the US style mm-dd-yyy.

I have tried setting the Session.LCID to 1033 and 2057 in turns (after closing the session) but nothing I seem to do has the slightest effect.

Can anyone please enlighten me while I still have some hair left!
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole
Status: Offline
Points: 9556
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 05 October 2010 at 4:26pm
All our servers are setup with the UK locale as default with dates in the format of dd-mm-yyyy.

Where are you seeing this incorrect date format? Is it when you try and have the dates viewable in an HTML webpage?

If you create a support ticket on this giving more fuller details such as database details and the URL of were the dates are not being displayed correctly we can have a look for you to see where the problem is.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.01
Copyright ©2001-2018 Web Wiz Ltd.


Become a Fan on Facebook Follow us on Twitter Connect with us on LinkedIn Community Forums Web Wiz Blogs Web Wiz News
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2019 Web Wiz Ltd. All rights reserved.