Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


English

Description

Thai

ลักษณะ

  • org.joget.commons.util.TimeZoneUtil
  • Under wflow-commons module
  • Utility methods to deal with Time Zone

...

Code Block
languagejava
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

Thai

กระบวนการ

convertToTimeZone
public static java.lang.String convertToTimeZone(java.lang.Date time, java.lang.String gmt, java.lang.String format) 

...