|
-
Dec 4th, 2000, 01:16 PM
#1
Thread Starter
Lively Member
Hey all,
I hope this is a simple one. As far as I understand it Date$ takes the system date from your PC. It doesn't give the value of this in the same format as your Regional setings define in the Windows Control Panel. The PC I'm ising has come from the States and so Date$ always gives me the system date in the format of mm/dd/yyyy. This has been causing me a few problems in that when I try to write the date to an Access Database it writes in the format of mm/dd/yyyy e.g. todays date, 04/12/2000, if I use Date$ to write this to Access it comes up as 12/04/2000 even though the Access settings are set to dd/mm/yyyy as per the Regional Setting in the Control Panels. Is there anyway to force Date$ to give the date in the format of dd/mm/yyyy. I've checked the System BIOS Setup and there doesn't seem to be anyway to change it from there.
Any help would be greatly appreciated.
Cheers
Paul
The problem with designing something completely foolproof is to underestimate the ingenuity of a complete fool. - Douglas Adams
I know the human being and fish can coexist peacefully. - GWB
I think we agree, the past is over. - GWB
-
Dec 4th, 2000, 01:23 PM
#2
Fanatic Member
Have you tried using format?
format(date$,"dd/mm/yyyy")
-
Dec 4th, 2000, 01:35 PM
#3
Thread Starter
Lively Member
Yeah ........ It's writing todays date into the Database as 12/04/2000
help
The problem with designing something completely foolproof is to underestimate the ingenuity of a complete fool. - Douglas Adams
I know the human being and fish can coexist peacefully. - GWB
I think we agree, the past is over. - GWB
-
Dec 4th, 2000, 01:55 PM
#4
Thread Starter
Lively Member
I don't know if this will work or how it can be done, but could someone tell me if it is possible to take the Date from Windows in some way other than using Date$ and if so how?
Cheers
Paul
The problem with designing something completely foolproof is to underestimate the ingenuity of a complete fool. - Douglas Adams
I know the human being and fish can coexist peacefully. - GWB
I think we agree, the past is over. - GWB
-
Dec 4th, 2000, 03:47 PM
#5
Fanatic Member
I can't help you with the Access issue, but you can get the date by using Now.
MsgBox Now
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|