in reply to win32 date format

What exactly are you trying to accomplish?
Changing the Windows date format?
Or changing the date format in one of your perl scripts?
Or something else entirely?

Also it's helpful if you post the code that you are trying to use.

Replies are listed 'Best First'.
Re: Re: win32 date format
by Anonymous Monk on Feb 07, 2003 at 22:29 UTC
    Hi Muskrat. The system date format has changed, so now all my windows programs report the date in U.S format, rather than U.K. The actual date is correct, just not in the correct format. Same in all programs. I think maybe i have set up some perl environmental variable that gets activated after windows loads that overrides whatever regional windows settings i have.

      Nothing to do with Perl. You need to set your locale

      Start|Settings|Control Panel|Regional Options|Gerneral or Date

      Just set the locale to English(United Kingdom) and then click on the Set as Default button and do the same. You need to do both because Microsoft don't believe in 1st normal databases. It is the same when you install windows - you have to set the locale 3 separate times to UK format - gotta love old M$. Alternatively click on the Date tab rather than General tab and set the desired format to whatever you want - yes you will need to set the long and short date formats or you will get some weird stuff happening.

      cheers

      tachyon

      s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

        Hi Tachyon Thank you for your answer. I tried to set these regional settings via ctrl panel. Unfortunately despite several reboots the date format is still the same MM/DD/YY. It seems like the ctrl panel has stopped working. At one point it said the entries were corrupt and i would have to reinstall windows. Could localtime or gmtime functions override operating system date formats and keyboard layout or is it more likely caused by messing with excel and win32::ole::nls