
日期
Mrf_w
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
解决SimpleDateFormat非线程安全
public class ThreadLocalDateUtil { private static final String date_format = "yyyy-MM-dd HH:mm:ss"; private static ThreadLocal<DateFormat> threadLocal = new ThreadLocal<DateFormat>(); public static DateFormat getDateFormat() .原创 2021-07-28 13:43:05 · 241 阅读 · 0 评论 -
获取最近6个月
public String[] getLast6Months() { DecimalFormat df = new DecimalFormat("00"); String[] last6Months = new String[6]; Calendar cal = Calendar.getInstance(); for (int i =...原创 2018-05-09 11:01:56 · 1267 阅读 · 0 评论 -
获取最近日期的上四个季度
package com.jadlsoft.business.aqjg;import java.text.SimpleDateFormat;import java.util.Calendar;public class Text { public static void main(String[] args) { getPreQuarter();// String [][] ...原创 2018-05-09 11:03:03 · 2383 阅读 · 0 评论