Conversions for dates, times, and some data types return unexpected results with differences in locale, when you create Microsoft Project Data Service (PDS) extensions in Visual Studio .NET (867743)
The information in this article applies to:
- Microsoft Office Project Server 2003
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986 Description of the Microsoft Windows Registry SYMPTOMSWhen you develop Microsoft Project Data Service (PDS) extensions in Microsoft Visual Studio .NET (2003), conversions for dates, times, and some data types may return unexpected results.CAUSEThis problem may occur if locale differences exist between the development environment, where the extension runs under the developer's account profile, and the Microsoft Project Server PDS environment where the extension runs.RESOLUTION Modify the Microsoft Windows registryWarning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. If you have trouble with different locale dates, examine the date formats in the registry. To do this, follow these steps: - Click Start, click Run, type regedit, and then click OK.
- Locate and then click to select the following registry key:
HKEY_USERS\.DEFAULT\Control Panel\International - Right-click sShortDate, click Modify, type the date format that you want, and then click OK.
- Right-click sTimeFormat, click Modify, type the time format that you want, and then click OK.
Programmatically convert the date and timeSpecify a ToString() conversion string that supplies an IFormatProvider method that uses a CultureInfo class that is correctly set up. For detailed information about how to programmatically convert the date and time, visit the following Microsoft Web site: STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Minor | Last Reviewed: | 8/29/2006 |
---|
Keywords: | kbtshoot kbprb KB867743 kbAudDeveloper |
---|
|