java new java.text.SimpleDateFormat("yyyyMM01").format(date)

SimpleDateFormat sdf = new SimpleDateFormat("yyyyMM");
Date date = sdf.parse("201508");
String s =new java.text.SimpleDateFormat("yyyyMM01").format(date);
System.out.print(s);

原文地址:https://www.cnblogs.com/leshang/p/4791789.html