If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Date format

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-12, 05:40
AndyJay AndyJay is offline
Registered User
 
Join Date: Feb 2008
Posts: 69
Date format

Hi all...
I'm running Access db for a complaints procedure application written in classic asp.
i have a form that inserts a completion date in the format of 09/02/2012
on my local pc, the date is inserted correctly, but on our 'intranet' server, the date is inserted as 02/09/2012

Can anyone advise on why this is and what needs to be done to correct it?

Many Thanks in advance

Andy
Reply With Quote
  #2 (permalink)  
Old 01-20-12, 06:08
Sinndho Sinndho is offline
Registered User
 
Join Date: Mar 2009
Posts: 3,446
Internally, the Jet Engine (the database engine of Access) only understands the mm/dd/yyyy format. When you need to pass a Date data to the Jet Engine, use:
Code:
"#" & Format(SomeDate, "mm/dd/yyyy") & "#"
__________________
Have a nice day!
Reply With Quote
  #3 (permalink)  
Old 01-20-12, 06:50
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
Access/JET stores date / time values as a number, not as a dd/mm/yyyy or any other format. it has problems confusing dates with dd/mm/yyyy with mm/dd/yyyy which is why date literals should be expressed as #mm/dd/yyyy# however it deos alwasy understand iso dates yyyy/mm/dd. it can also handle dd mmm yyyy, where the month is spelt as per your computers localisation settings

Access can handle dd/mm/yyyy dates depending on how they are presented tot he system (if they are in a control then usign the value of thjat control in an SQL expression will work fine, as Access uses the current localisation settings for the controls data validation)

Id be tempted to check where your server thinks its located (ie its internationalisation / localislation settings are.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On