Previous in Contents Next in Contents

DataFunctions.ConvertDateString Method

The ConvertDateString method converts the specified string to a Date Variant, based on the specified locale. If successful, ConvertDateString returns the Date Variant containing the converted value; otherwise, Null.

Syntax

Page.ConvertDateString(String, Locale)

Parameters

String
A string representation of the date to convert.
Locale
Optional. This number specifies the locale to use to process the string. For a list of valid locale IDs, see Hexadecimal Locale Identifiers. If this parameter is not specified, the value of the DataFunctions object's Locale parameter is used.

Warning  In some cases, the DataFunctions.ConvertDateString method returns NULL when converting a string representation of the Date to the Date VARIANT type for Latvian and Bulgarian locales. To avoid this problem, remove the constant string added at the end of the Date Represantion String according to the Regional Settings.

Related Topics


© 1997-2000 Microsoft Corporation. All rights reserved.