- org.joget.commons.util.TimeZoneUtil
- Under wflow-commons module
- Utility methods to deal with Time Zone
...
Code Block |
---|
|
import java.util.Date;
import org.joget.commons.util.TimeZoneUtil;
import org.joget.apps.app.service.AppUtil;
//Format current date to System/User selected timezone and date format
String dateString = TimeZoneUtil.convertToTimeZone(new Date(), null, AppUtil.getAppDateFormat()); |
Methods
convertToTimeZone
public static java.lang.String convertToTimeZone(java.lang.Date time, java.lang.String gmt, java.lang.String format)
...