GMTToLocalDate Method

Convert GMT datetime string to DateTime type.

[Syntax]
C++: HRESULT GMTToLocalDate( BSTR GMTDate, VARIANT* pVal )
Visual Basic: GMTToLocalDate( GMTDate As String ) As Variant
C#: object GMTToLocalDate( string GMTDate )

Parameters

GMTDate

GMT datetime string to be converted.

Return Value

This method returns the converted datetime.

Usage Example

[Visual Basic]
Dim POPMSG As Object
Dim vd
Set oMsg = CreateObject("ANPOP.POPMSG")
vd = oMsg.GMTToLocalDate("Thu, 18 Aug 2005 07:44:06 +0800") 
MsgBox vd

2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.