We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
val parseDate1 = DateFormatUtil.parseDate("${1}-${1}-${1} ${0}:${0}") val parseDate2 = DateFormatUtil.parseDate("${10000}-${1}-${1} ${0}:${0}") val startTime = DatimeEntity.now() val endTime = DatimeEntity.now() startTime.date = DateEntity.target(parseDate1) endTime.date = DateEntity.target(parseDate2) startTime.time = TimeEntity.target(parseDate1) endTime.time = TimeEntity.target(parseDate2) binding.dwl.setRange(startTime, endTime) private static final DateFormat FORMAT_DATE_WITH_MINUTE = new SimpleDateFormat("yyyy-MM-dd HH:mm"); public static Date parseDate(String dateStr) { try { return FORMAT_DATE_WITH_MINUTE.parse(dateStr); }catch (Exception e){ return new Date(); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: