Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将丰富的日历日期转换为 mysql 日期。
并且在处理程序 empDOJ 中是 Date 类型。当我尝试通过 SimpleDateFormat 转换它时,它没有转换。
SimpleDateFormat sdf=new SimpleDateFormat("yyyy/mm/dd"); Date conDate=sdf.parse("doj");
SimpleDateFormat sdf=new SimpleDateFormat("yyyy/MM/dd"); Date conDate=sdf.parse(doj);
代替
mm表示Minutes MM表示Month
mm
Minutes
MM
Month