我在字符串类型中有以下值 /Date(1234043600000)/
,我需要将其转换为 java 日历类型但没有成功,我尝试使用以下帖子并创建日期,而不是执行类似帖子的操作
Date date = new Date(parseInt(jsonDate.substr(6)));
and than do someting like
Calendar cal = Calendar.getInstance();
cal.setTime(date);
我在第一行出现错误,因为在单词 date 中我在中间有一行并且substr(6)
有错误(方法 substr(int) 未定义为 String 类型),我应该如何继续。
谢谢!