Code example for SimpleDateFormat

Methods: setTimeZone

0
public class PwDatabaseV4XML { 
 
	public static final SimpleDateFormat dateFormat;
	 
	static { 
		dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
		dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
	} 
	 
    public static final String ElemDocNode = "KeePassFile";
    public static final String ElemMeta = "Meta";
    public static final String ElemRoot = "Root";
    public static final String ElemGroup = "Group";
    public static final String ElemEntry = "Entry";
 
    public static final String ElemGenerator = "Generator";
    public static final String ElemHeaderHash = "HeaderHash";
    public static final String ElemDbName = "DatabaseName";
    public static final String ElemDbNameChanged = "DatabaseNameChanged";
    public static final String ElemDbDesc = "DatabaseDescription";
    public static final String ElemDbDescChanged = "DatabaseDescriptionChanged";