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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date format problems 1

Status
Not open for further replies.

dk99

MIS
Jun 20, 2003
76
GB
I have a query which the user inputs the dates into a form in the format "dd/mm/yyyy" yet when I run this through a query it converts the date format to "mm/dd/yyyy" but runs the date as though it is "dd/mm/yyyy"?

EG.

User inputs 01/09/2006, query runs as 09/01/2006 and returns all data from 09 January?


The query is a simple SQL looking at a table and selecting data for the date selected - or it should do!

 
Dates are stored as numeric values, number of days since 12/30/1899 and part of day elapsed as the fractional / decimal part. Formats are semi-controlled by hte international settings, however the SEMI part is important -in particular to queries which ALWAYS uas hte U.S. format for dates.




MichaelRed


 
Thank you mp9 - worked a treat (spent all morning trying to work round it!)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top