Microsoft KB Archive/312759

= BUG: PORequestApproval.wsc Component Is Hard-Coded to Expect the English Date/Time Format =

Article ID: 312759

Article Last Modified on 6/4/2003

-

APPLIES TO


 * Microsoft BizTalk Server 2000 Standard Edition
 * Microsoft BizTalk Server 2002 Standard Edition

-



This article was previously published under Q312759



SYMPTOMS
In the Microsoft BizTalk Server tutorial, PORequestApproval.wsc contains the following statement which expects an English date/time format: Line 47: 'Generate a Unique Number used to generate unique files using a mask strTimeNow = left(Replace(CStr(FormatDateTime(Now, 3)),&quot;:&quot;,&quot;&quot;), 6) The date and time are used to generate unique file names.



CAUSE
This problem occurs because the script is expecting the date and time in the following format:   MM/DD/YY HH:MM:SS This may cause errors when the script tries to generate a unique file name on localized platforms that are not using the English date/time format.



RESOLUTION
To resolve this problem, modify the script to adjust for your local date/time format by using the DatePart function: strTimeNow = DatePart(&quot;h&quot;, Now) & DatePart(&quot;n&quot;, Now) & DatePart(&quot;s&quot;, Now) As an alternative, you can change your regional setting to use English date/time format.



STATUS
Microsoft has confirmed that this is a problem in Microsoft BizTalk Server 2002.

Keywords: kbbug kbnofix KB312759

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.