SQL Server & international date formats

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default SQL Server & international date formats

    Here we go again...... I have been developing an asp app using a SQL Server DB
    on my test server in the UK. All formats are set to be UK formats, dd/mm/yyyy
    etc, and all is cool. All searches involving dates find the correct events, all
    date inserts work fine and display correctly. Now I have to put it up on a
    public webserver in order for the client to play with it - in my case a
    Fasthosts server. Still in the UK, you would think everything would be OK.
    Nope, all the fields involving dates throw an error on submit: Microsoft OLE
    DB Provider for SQL Server error '80040e07' The conversion of char data type
    to smalldatetime data type resulted in an out-of-range smalldatetime value.
    All searches find the wrong results. I have tried putting LCID=2057 in my
    connection page, so that it is an include in every page in the site. Still
    wrong. Because this site is only temporarily on the public server I don't
    really want to do wholesale re-writes. Anybody got any ideas for a
    work-around?

    tim-p Guest

  2. Similar Questions and Discussions

    1. Dreamlettes Calendar Extension - Date Formats
      Hi Everyone, I've just installed the Dreamlettes Calendar extension and I'm having a few problems with date formats. I'm in the UK however, the...
    2. date formats
      hi i am working with uk date formats (dd/mm/yy) however the server the site is hosted on is in the us(mm/dd/yy) format i am using the following...
    3. Handle multiple input date formats?
      I have a date input field and I want to be able to handle 3/22/04, 22-mar-04, March 22, 2004, etc. I looked through the Module List and there are...
    4. Converting Date Formats?
      Howdy! I have some dates in a MySQL database that are in a 'Y-m-d' format. Is there a way to have PHP read these dates and convert them to a...
    5. Date formats in webpages
      I am new to using ASP and am trying to develop a site for the band I am a member of. The data for our bookings is held in an Access database and I...
  3. #2

    Default Re: SQL Server & international date formats

    Another symptom. All the dates display correctly on the page. It is just where they are searched or inserted/updated that the problems arise.

    Aaaaargh!
    tim-p Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139