|
-
Date format
I've got some problems with date format (day and month result inverted) during
the execution of a stored procedure.
To obtain server settings, I have used the following statements:
select @@language
select @@langid
select convert(char(30),current_timestamp)
Is there any alternative way to discover date format?
Thanks in advance.
-
Re: Date format
Based on the language ID, you can pick it up from syslanguages in the master
database. It will be presented there as dmy, mdy, or ymd.
--
Rob Vieira MCSD, MCT, MCDBA
www.ProfessionalSQL.com
"Tino B." <fb_tino@jumpy.it> wrote in message
news:3a714db3$1@news.devx.com...
>
> I've got some problems with date format (day and month result inverted)
during
> the execution of a stored procedure.
> To obtain server settings, I have used the following statements:
>
> select @@language
> select @@langid
> select convert(char(30),current_timestamp)
>
> Is there any alternative way to discover date format?
> Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks