solr 日期查询格式时间:2021-06-30 13:02:33 //solr 日期格式: SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); //开始日期到结束日期 String time = "createTime:["+sdf.format(new Date())+" TO "+sdf.format(new Date())+"]";