home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Products
TV-Server
For The Record - The rule-based scheduling suite
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="dvdfreak" data-source="post: 185557" data-attributes="member: 21313"><p>Thanks, this was very helpful as I'm pretty sure it's this that gives the error on your SQL:</p><p></p><p> CAST('2007/09/25' AS DATETIME)</p><p></p><p>Must be a locale thing, I'm going to look for a more correct locale-independant way of converting this date.</p><p></p><p>To confirm this, can you try to execute the following in your SQL Management Studio:</p><p></p><p> SELECT CAST('2007/09/25' AS DATETIME)</p><p></p><p> SELECT CAST('2007/25/09' AS DATETIME)</p><p></p><p>I wouldn't be surprised if the first one fails, and the second one works...</p><p></p><p><strong>EDIT</strong></p><p></p><p>Does the following work?</p><p></p><p> SELECT CONVERT(DATETIME, '2007.09.25', 102)</p></blockquote><p></p>
[QUOTE="dvdfreak, post: 185557, member: 21313"] Thanks, this was very helpful as I'm pretty sure it's this that gives the error on your SQL: CAST('2007/09/25' AS DATETIME) Must be a locale thing, I'm going to look for a more correct locale-independant way of converting this date. To confirm this, can you try to execute the following in your SQL Management Studio: SELECT CAST('2007/09/25' AS DATETIME) SELECT CAST('2007/25/09' AS DATETIME) I wouldn't be surprised if the first one fails, and the second one works... [b]EDIT[/b] Does the following work? SELECT CONVERT(DATETIME, '2007.09.25', 102) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
TV-Server
For The Record - The rule-based scheduling suite
Contact us
RSS
Top
Bottom