Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/10/2009, 08:38
Javichechu
 
Fecha de Ingreso: junio-2007
Mensajes: 327
Antigüedad: 16 años, 11 meses
Puntos: 0
Respuesta: Transformar una fecha de tipo LONG

LngBias se optiene del siguienet código, pero sigo sin saber ponerlo en práctica en .net

Código:
' Obtain local Time Zone bias from machine registry.

Set objShell = CreateObject("Wscript.Shell")
lngBiasKey = objShell.RegRead("HKLM\System\CurrentControlSet\Control\" _
    & "TimeZoneInformation\ActiveTimeBias")

If (UCase(TypeName(lngBiasKey)) = "LONG") Then
    lngBias = lngBiasKey
ElseIf 
    (UCase(TypeName(lngBiasKey)) = "VARIANT()") Then
        lngBias = 0
         For k = 0 To UBound(lngBiasKey)
            lngBias = lngBias + (lngBiasKey(k) * 256^k)
         Next
End If