【发布时间】:2015-07-05 10:58:02
【问题描述】:
当我尝试将 String 对象转换为 Date 对象时,出现 java.text.ParseException: Unparseable date: "IST" 异常。我试图在论坛上找到解决方案,但这些都没有帮助。
Date expiry=null;
SimpleDateFormat format = new SimpleDateFormat("E MMM dd HH:mm:ss Z yyyy");
String actualDate;
if(!(actualDate=token.nextToken()).equals("null")){
expiry = format.parse(actualDate);
}//if
【问题讨论】:
-
什么是actualDate?
标签: java parsing date selenium selenium-webdriver