Re: us date format
- From: "RoyVidar" <roy_vidarNOSPAM@xxxxxxxx>
- Date: Sat, 21 Jan 2006 23:39:59 GMT
Bob Wickham wrote in message <43d2b6d9@xxxxxxxxxxxxxxxxx> :
Thanks Roy and Marshall,
That fixed it.
Info for anybody else confused about all this.
This code: (without line breaks)
Me![PaymentDate].DefaultValue = "#" & Format$(Me![PaymentDate], "yyyy-mm-dd") & "#"
will display dates according to the text boxes Format property, as Marshall suggested.
In my case:
dd/mm/yy will display 12/06/05 (12th day of June, 05)
Short Date will display according to your regional settings eg dd/mm/yyyy (12/06/2005) (12th day of June, 2005)
Yes, it works, but, I have read several posts (notably Steve Schapel) suggesting that dates be converted using CLng so as to eliminate any confusion about all the different date formats.
Can anyone explain how I would use CLng with my current problem.
Bob
Number formatting scheme - well, I'm not the best to explain that, since
I don't like using that technique. I'm not sure formatting to long will
work in this scenario, and I'm not sure how it would work against other
databases, for instance SQL server or Oracle ...
I'm happy enough with the knowledge that whenever passing information as
a string - and that's probably the crucial point - as a string - one
need to pass it in an unambiguous format. I will prefer the suggested
format (or use methods that utilize the parameters collection of the
method one uses to execute queries;-)).
-- Roy-Vidar
.
- Follow-Ups:
- Re: us date format
- From: Bob Wickham
- Re: us date format
- References:
- us date format
- From: Bob Wickham
- Re: us date format
- From: Marshall Barton
- Re: us date format
- From: Bob Wickham
- Re: us date format
- From: RoyVidar
- Re: us date format
- From: Bob Wickham
- us date format
- Prev by Date: Re: Help: The expression you entered as a query parameter produced....
- Next by Date: Re: Sending an E-mail from Access
- Previous by thread: Re: us date format
- Next by thread: Re: us date format
- Index(es):
Relevant Pages
|
Loading