Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the Short Date Format
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00326335
Message ID:
00326519
Vues:
23
>Does anybody have a routine to set the short date format for windows. Right now, the user has to go to START|Control Panel|Regional Settings and switch to the date tab. The reason is I've started using the Microsoft Date/Time picker. Since it went out, I've gotten calls from users saying it was only displaying 00 for the year (y2k scare is going). Anyway, I kinda thought it would be handy if when the application is started if I change that to the mm/dd/yyyy format.
>

It's a registry value under HKEY_CURRENT_USER\Control Panel\International called sShortDate, takes a REG_SZ value with the string - I have mine set 'M/d/yy'; to get the effect you want, set it to 'MM/dd/yyyy'

There's another value iDate; not sure what it represents (perhaps default date mode).
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform