// Hi,
// Try this code to get DATE

environment lenv_env
GetEnvironment(lenv_env)

CHOOSE CASE lenv_env.OSType
  CASE WindowsNT! /* Windows 95, 98, NT */

        RegistryGet("HKEY_CURRENT_USER\Control
Panel\International","SLongDate",ls_longdate)
        RegistryGet("HKEY_CURRENT_USER\Control
Panel\International","sShortDate",ls_shortdate)

  CASE Windows! /* windows 3.1 */
        ls_shortdate = ProfileString("WIN.INI", "intl", "sSHortDate",
"None")
END CHOOSE


// TO SET REGISTRY USE for 32 bit
RegistrySet( "HKEY_CURRENT_USER\Control Panel\International"," "SLongDate",
RegString!, ls_longdate)

//to set it in 16 bit
SetProfileStringWIN.INI", "intl", "sSHortDate", sSHortDate)



        -----Original Message-----
        From:   KJ R [SMTP:[EMAIL PROTECTED]]
        Sent:   Monday, August 23, 1999 6:47 PM
        To:     Pat McGarrah; [EMAIL PROTECTED]
        Subject:        Re: PFCSIG Changing the computer date format with PB

        The way to change a computer's regional date settings (win95/98/NT?)
is
        through the control panel/regional settings/date/shortdate format.
I
        usually set it to M/D/YYYY.  I'm not sure if you can do it through
the
        registry (you must be able to do this), but if you correct it, why
        would you want to change t back?  Anyway, maybe someone else knows
the
        spot in the registry where this is set, but I recommend changing it
to
        what you want and LEAVING it!

        My $.02,
        Kevin Ridley

        --- Pat McGarrah <[EMAIL PROTECTED]> wrote:
        > Hi Folks,
        > 
        > I don't know if this is a PFC issue.  I remember
        > that there was a posting 
        > on changing the computer's regional date settings on
        > application startup 
        > and re-setting them on closing the application.  I
        > can't find a reference 
        > any more.  Can somebody help me out?
        > 
        > Thanks,
        > --
        > Pat McGarrah
        > 253.564.9563 (Tel)
        > 253.565.4544 (Fax)
        > > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH
        > LIST SERVE COMMANDS, ADDRESS
        > > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING
        > MESSAGE:   help pfcsig
        > > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
        > 

        __________________________________________________
        Do You Yahoo!?
        Bid and sell for free at http://auctions.yahoo.com

        > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE
COMMANDS, ADDRESS
        > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE:   help
pfcsig
        > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE:   help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]

Reply via email to