SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Date Format issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mmkrishna1919
Yak Posting Veteran

India
91 Posts

Posted - 03/13/2013 :  08:56:02  Show Profile  Reply with Quote
Hi All,

Currently my session setting is mdy

what all are formats are valid as per my session setting?
i tried with
01-31-2013 (mm-dd-yyyy) valid (make sense)
31-01-2013 (throws arithmetic overflow error) (make sense) because there is no 31st month.

But when i tried with 2013-01-31 it is returning result
and when i tried with 2013-31-01 it is throwing over flow error message.

How sql server intrepets this date based on session setting?

Thanks...



M.MURALI kRISHNA

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 03/13/2013 :  10:10:29  Show Profile  Reply with Quote
see

http://visakhm.blogspot.in/2011/12/why-iso-format-is-recommended-while.html

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000