T tanatif Registered User. Local time Yesterday, 23:25 Joined Feb 10, 2016 Messages 40 Feb 16, 2016 #1 i found this Code: In SQL Server 2012 you can use new function called format as the following SELECT FORMAT ( GETDATE(), ‘dd/MM/yyyy’, ‘ar-SA’ ) Result 16/08/1435 but where i paste that in sql database table ?
i found this Code: In SQL Server 2012 you can use new function called format as the following SELECT FORMAT ( GETDATE(), ‘dd/MM/yyyy’, ‘ar-SA’ ) Result 16/08/1435 but where i paste that in sql database table ?
T tanatif Registered User. Local time Yesterday, 23:25 Joined Feb 10, 2016 Messages 40 Feb 16, 2016 #2 i try but result is : 2016-02-12 00:00:00 i dot wont 00:00:00 only 2016-02-12 by this setting 1437/05/08
i try but result is : 2016-02-12 00:00:00 i dot wont 00:00:00 only 2016-02-12 by this setting 1437/05/08
T tanatif Registered User. Local time Yesterday, 23:25 Joined Feb 10, 2016 Messages 40 Feb 16, 2016 #3 see result in attachment Attachments date.png 1.8 KB · Views: 208
SQL_Hell SQL Server DBA Local time Today, 07:25 Joined Dec 4, 2003 Messages 1,361 Feb 18, 2016 #4 --code to get date only select convert(date,getdate()) --added to your format statement select format(convert(date, getdate()), 'dd/MM/yyyy', 'ar-SA' ) Last edited: Feb 18, 2016
--code to get date only select convert(date,getdate()) --added to your format statement select format(convert(date, getdate()), 'dd/MM/yyyy', 'ar-SA' )
T tanatif Registered User. Local time Yesterday, 23:25 Joined Feb 10, 2016 Messages 40 Feb 19, 2016 #5 THANK YOU SQL_Hell
T tanatif Registered User. Local time Yesterday, 23:25 Joined Feb 10, 2016 Messages 40 Feb 24, 2016 #6 PLEASE I TRY BUT NOT GOOD RESULT [Microsoft][ODBC SQL Server Driver]Datetime field overflow(#0) some one HE IS TALKING ABOUT ERROR HANDLEING instead of 2003, the same error will be produced. Just add some error handling to your Access form, and you'll be all set. PLEASE HOW TO HELP ME
PLEASE I TRY BUT NOT GOOD RESULT [Microsoft][ODBC SQL Server Driver]Datetime field overflow(#0) some one HE IS TALKING ABOUT ERROR HANDLEING instead of 2003, the same error will be produced. Just add some error handling to your Access form, and you'll be all set. PLEASE HOW TO HELP ME
SQL_Hell SQL Server DBA Local time Today, 07:25 Joined Dec 4, 2003 Messages 1,361 Feb 25, 2016 #7 I can't really understand what you're talking about here