newInstanceGmt in Salesforce

Constructs a DateTime from the specified date and time in the GMT time zone.

Sample Code:

        Date Dt =;
        Integer yr = Dt.year();
        Integer mon = Dt.month();
        Integer dy =;
        Datetime result = Datetime.newInstanceGMT(yr, mon, dy);

No comments:

Post a Comment

Sharing is Caring!!! Share this with your friends!!!

submit to reddit