Java Date 处置注意事项
Java Date 处理注意事项(1)异常:Illegal pattern character YSimpleDateFormat sdf new SimpleDateFor
Java Date 处理注意事项
(1)异常:Illegal pattern character 'Y'
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
yyyy-MM-dd 中yyyy和dd只能用小写,写成YYYY-MM-DD会报Illegal pattern character 'Y'