Results 1 to 5 of 5

Thread: Using Date$

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    79

    Angry

    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

  2. #2
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736
    Have you tried using format?

    format(date$,"dd/mm/yyyy")

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    79

    Angry

    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

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    79
    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

  5. #5
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736
    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
  •  



Click Here to Expand Forum to Full Width