public static Date str2dateEx(String strValue) throws ParseException {
if (strValue == null)
throw new ParseException("字符串为空", 0);
Date theDate;
SimpleDateFormat theFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
theDate = theFormat.parse(strValue);
return theDate;
}
java中将字符串转换成日期类型,可以使用simpledateformat日期转换类,有一个前提是字符串必须满足日期的格式,如果不是会有异常
=left(a1,2)&":"&mid(a1,3,2)&":"&mid(a1,5,2)&":"right(a1,4)
Hadoop|
Apache Pig|
Apache Kafka|
Apache Storm|
Impala|
Zookeeper|
SAS|
TensorFlow|
人工智能基础|
Apache Kylin|
Openstack|
Flink|
MapReduce|
大数据|
云计算|
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....