View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Roger Govier[_10_] Roger Govier[_10_] is offline
external usenet poster
 
Posts: 15
Default convert american dates from a query

Hi Tom

On a UK machine the following is returned

? cdate("1 Dec 2005")
01/12/2005
? datevalue("1 Dec 2005")
01/12/2005

Regards

Roger Govier


Tom Ogilvy wrote:
VBA should understand that date format:

? cdate("1 Dec 2005")
12/01/2005
? datevalue("1 Dec 2005")
12/01/2005

I don't have a non US machine to test it on, but I think converting the
string in VBA to a dateserial should do what you need.