Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { public static String convertCurrentChinaDateToStr() { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmssSS", Locale.CHINA); // dateFormat.setTimeZone(TimeZone.getTimeZone("GMT+0000")); String dateStr = dateFormat.format(new Date()); return dateStr; } }