得到當前周的第一天和最後一天

/** * 獲得本週週一 * * @return yyyy-MM-dd */ public static String getMondayOfThisWeek() { Calendar c = Calendar.getInstance(); int dayofweek = c.get(Calendar.DAY_OF_WEEK) - 1; if (dayofweek == 0)
相關文章
相關標籤/搜索