BlueCielo Meridian Enterprise 2012 Developer's Guide | BlueCielo ECM Solutions

AMDateTime object

The object should be used to convert between server time (UTC) and client local time.

Members
Name Description

IsValidLocalTime property

True if the Date value is a valid local time. (Second argument is ignored.)

Local property

The date value for local time zone.

UTC property

The date value in UTC.

Remarks

All Date values stored in the vault are in UTC. Therefore, they are independent of the time zone on client or server machines.

Before a Date value is displayed to the user, it should be converted to the user’s timezone. The sample code below demonstrates how the AMDateTime object is used to do this conversion. It can be used to convert in both directions.

    Dim amdt As New AMDateTime

    amdt.UTC = doc.Created
    txtText = amdt.Local

Copyright © 2000-2012 BlueCielo ECM Solutions