版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_38750084/article/details/85030544
转换工具类:
/**
* 转为es 日期格式
* @param d
* @return
*/
public static String getEsDate(Date d){
String time = formatTime(d);
if (!StringUtil.isEmpty(time)){
time = time.replace(" ","T") + "Z";
return time;
}
return null;
}