java获取一年的周数和间隔天数 import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; public class Test { private static Date deformatDatetime(String strDate, String fmt) { try { if (fmt == null) { return (new SimpleDateFormat("yyy
/** * java获取 当月所有的日期集合 * @return */public static List<Date> getDayListOfMonth() { List list = new ArrayList(); Calendar aCalendar = Calendar.getInstance(Locale.CHINA); int year = aCalendar.get(Calendar.YEAR);//年份 int month = aCalendar.get(Calendar.M
java获取取得Timestamp类型的当前系统时间java获取取得Timestamp类型的当前系统时间 格式:2010-11-04 16:19:42 方法1: Timestamp d = new Timestamp(System.currentTimeMillis()); 方法2: Date date = new Date(); Timestamp nousedate = new Timestamp(date.getTime()); ------------------------