无关风月
7 天以前 4f5d220cd175b1cb48c6fc91cb02cb12f6114746
cloud-server-other/src/main/java/com/dsh/other/util/DateComparisonExample.java
@@ -31,7 +31,7 @@
                && (valueEndDate.before(endDate) || valueEndDate.equals(endDate));
    }
    public static  boolean isStringWithinTimeRange(String stringValue, Date startTime, Date endTime) {
    public static boolean isStringWithinTimeRange(String stringValue, Date startTime, Date endTime) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
        try {
            Date dateValue = sdf.parse(stringValue);