Android Utililty Methods Date Timezone Change

List of utility methods to do Date Timezone Change

Description

The list of methods to do Date Timezone Change are organized into topic(s).

Method

DatelocalDateToUTC(Date dtLocal)
local Date To UTC
if (dtLocal == null)
    return null;
TimeZone tz = TimeZone.getDefault();
int currentOffsetFromUTC = tz.getRawOffset()
        + (tz.inDaylightTime(dtLocal) ? tz.getDSTSavings() : 0);
return new Date(dtLocal.getTime() - currentOffsetFromUTC);
DatetoLocalDate(Date gmtDate)
to Local Date
return new Date();