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

CreateODBCDateTime and Eurodate problem

Status
Not open for further replies.

tsherr

Technical User
Joined
Jan 12, 2002
Messages
1
Location
CA
I have a database in Access 2000 using a EuroDate format. It works fine in Access, but when I use the CreateODBCDateTime so that I can run a Select Query between two dates, CF switches the day and month, so a date of Jan, 12, 2002 (12/02/2002) gets switched to Dec 2, 2002 (MM/DD/YYYY.) Is there a way around this?

Thanks,

T
 
hi TSher,

If I were you I would use:

Dateformat(MyDate,"DD/MM/YYYY")

You may have to add the Time Stamp as well, if so you can use:
TimeFormat(MyTime,&quot;hh:mm:ss&quot;) <!--- I think that is correct. you can always output the ODBCDateTime and see exactly what the format is.

I'm sure that between DateFormat and Timeformat you can figure it out.

IF the Time is not necessary, you can fill the spaces with zeros, I'm sure that is what createODBCDate function does.

cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top