Consider the following scenario on a Windows Vista or a Windows Server 2008-based computer:
- The system locale setting is Hebrew or Arabic that uses right-to-left (RTL) language.
- You use the FormatDateTime function of Visual Basic Scripting Edition (VBScript) to obtain an expression string that is formatted as a date or a time.
Note: In this scenario, the string is RTL formatted and this feature is supported because the VBScript version 5.6.
- You pass the string to the DateDiff function to obtain the interval between two dates. One of the two dates (which are the parameters for the DateDiff function) is the expression which is from the FormatDateTime function.
In this scenario, you receive the following error message:
Microsoft VBScript runtime error