Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date format
Message
From
08/02/2019 18:29:10
 
 
To
08/02/2019 17:58:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
01666138
Message ID:
01666143
Views:
24
>>Hi,
>>
>>Could you please explain why (where is the rule?) the SQL Server always looks at the date in the following format: 'yyyyMMdd' (no matter the date format of the country where the SQL Server is installed).
>>
>>That is, the following code:
>>
>>DECLARE @SomeDate AS SmallDateTime
>>SELECT @SomeDate = '20190204'
>>SELECT @SomeDate
>>
>>
>>always returns February 4th of 2019 (and NOT April 2nd).
>>
>>TIA
>
>It is "canonical ODBC format". Should be declared in some ODBC proposal.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform