Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Format Problem

Status
Not open for further replies.

mohmehran

Programmer
Aug 16, 2000
74
GB
I have experiencing a problem, for executing INSERT INTO and SELECT statements. I
have set the SQL Server settings default lang to British English. I have also set
the regional settings of my machine to 'dmy'. But still I have problems inserting
date fields using dmy format.

Am I doing wrong?
Thanks for your help.
[sig]<p>Mohammad Mehran Nikoo<br><a href=mailto:mohmehran@yahoo.com>mohmehran@yahoo.com</a><br>MCP with experience in VB, ASP, XML, SQL, COM[/sig]
 
As an experiment, try setting:

SET DATEFORMAT dmy

immediately before the statement and see what happens. [sig]<p>Robert Bradley<br><a href=mailto: > </a><br><a href= - Visual FoxPro Development</a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top